-
-
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
cancelling cancelToken on request that is already finished gives error #482
Comments
|
Code snippet: Uncaught (in promise) TypeError: Cannot read property 'abort' of null(…)onCanceled |
When calling this function twice, I get: Error: Uncaught (in promise) TypeError: Cannot read property 'abort' of null(…)onCanceled if (config.cancelToken) { |
Can confirm. Looks like lines |
Fixed via 3fcf54f |
Thanks @nickuraltsev :) |
I am getting an error while doing get request using axios |
Hello, I am facing same error as mentioned by jadelmir. Please let me know if anyone has fixed for it. I am using Laravel 5.3 and implements Vue.js to build a chat application.
Regards, |
there should be an easy mechanism to have 'overwrite' a request with a new one. Currently this is not possible. Also, it's not clear whether a cancelToken can be 'recycled', or whether a new one should be generated on every request
if (cancelToken) cancelToken.cancel();
cancelToken = axios.CancelToken.source();
axios.get(...
The text was updated successfully, but these errors were encountered: