Increase timeout for fetch to avoid 504 gateway timeout

454 Views Asked by At

I got a typescript code which uses fetch to make a long running http request. The request can sometime take a while and I don't want a 504 gateway timeout to be thrown after the default timeout.

Is there a way to increase the time until a 504 error is thrown if no response is received for a fetch call?

0

There are 0 best solutions below