How to increase server timeout in Apisauce

197 Views Asked by At

I have a request that exceeds 30 seconds, but it can be completed after 30 seconds. How can I increase the server timeout?

I increased the timeout on the config file but it didn't work

1

There are 1 best solutions below

1
egemenakturk On

Default timeouts can be applied too:

const api = create({ baseURL: '...', timeout: 30000 }) // 30 seconds

If you can check the documentation of this library it will answer most of your questions. https://github.com/infinitered/apisauce