Skip to content
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

axios.CancelToken.timeout() function #4488

Closed
vikasg603 opened this issue Feb 17, 2022 · 1 comment
Closed

axios.CancelToken.timeout() function #4488

vikasg603 opened this issue Feb 17, 2022 · 1 comment

Comments

@vikasg603
Copy link

vikasg603 commented Feb 17, 2022

Currently, there are some running bugs with Axios #4364 where request freezes after some time and timeout doesn't work at all.
The current workaround is to cancel the request after a specified timeout.

But for this every time, we have to create a timeout manually and have to cancel it once we got the response before the timeout.
Can we expect some workaround for this? something like
token = axios.CancelToken.timeout(ms: number)
where, after ms millisecond this will call cancel function.

Something similar to https://nodejs.org/api/globals.html#static-method-abortsignaltimeoutdelay

@github-actions
Copy link
Contributor

Hello! 👋

This issue is being automatically closed because it does not follow the issue template. Please read the issue template carefully and follow all of the instructions when opening a new issue.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant