-
-
Notifications
You must be signed in to change notification settings - Fork 11k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Timeout configuration? #56
Comments
Currently no option for this. But it would be a good feature. |
+1 for this feature. |
FYI - I'm doing it like this presently as a workaround
|
This will be available when 0.6.0 is released. |
Awesome - Thanks 👍 |
I just released 0.6.0 which includes a fix for this. |
hey @mzabriskie, could you please provide an example of how to use the timeout config for a single request? Thanks very much! |
@tnrich axios.get('your-url', {'timeout': 1000}); I hope this helps. |
@mzabriskie I have set axios.defaults.timeout = 1000; I disconnected the server that provides me with the rest API. But it takes more that 1 ms to timeout after sending a request. This is how my request looks:
|
hi,
I was wondering if there is a way to configure the default timeout for axios requests?
thanks,
chris
The text was updated successfully, but these errors were encountered: