You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Yes. Currently I am using Axios With Proxy to perform some API request. However, some proxy might be slow or when the response size is too large, Axios will not timeout the request but it will keep waiting and waiting. The timeout option provided by Axios is response timeout, it would be great to have another option like Connection Timeout
Describe the solution you'd like
A "Connection Timeout & Retry" would be great.
Describe alternatives you've considered
Tried other HTTP client but it wasn't as good as axios in terms of speed. However, the only drawback is the connection timeout :(
Additional context
None.
The text was updated successfully, but these errors were encountered:
The solution in that comment depends on the node library. Is there any solution for react-native, since react-native does not have any node dependency, that solution does not work
I agree we need a connection timeout to axios. This provides greater control on connections.
Our use case is we have a Lambda making an HTTP request and we need to have diff timeouts for connection and response.
I tried the suggestion on #1739 (comment) but couldn't make it work (Axios 1.4.0 on Node 18.14.2). But even with that suggestion, that's work around IMO, since one would expect that sort of control on a HTTP library.
Is your feature request related to a problem? Please describe.
Yes. Currently I am using Axios With Proxy to perform some API request. However, some proxy might be slow or when the response size is too large, Axios will not timeout the request but it will keep waiting and waiting. The timeout option provided by Axios is response timeout, it would be great to have another option like Connection Timeout
Describe the solution you'd like
A "Connection Timeout & Retry" would be great.
Describe alternatives you've considered
Tried other HTTP client but it wasn't as good as axios in terms of speed. However, the only drawback is the connection timeout :(
Additional context
None.
The text was updated successfully, but these errors were encountered: