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
Request cancellation via AbortSignals is failing due to a runtime error caused by an incorrect variable name. This bug was introduced in this PR #4659 where the variable name req is being used in the context where it should request.
To Reproduce
In Release 0.28.0 make a request and attempt to cancel it using an AbortSignal. It will fail with the following error:
Uncaught ReferenceError: req is not defined
at AbortSignal.onCanceled (axios.js?v=32772bb9:1093:77)
// Longer stack trace continues
Code snippet
No response
Expected behavior
Query cancellation should succeed.
Axios Version
0.28.0
Adapter Version
XHR
Browser
any
Browser Version
any
Node.js Version
No response
OS
No response
Additional Library Versions
No response
Additional context/Screenshots
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
Request cancellation via AbortSignals is failing due to a runtime error caused by an incorrect variable name. This bug was introduced in this PR #4659 where the variable name
req
is being used in the context where it shouldrequest
.To Reproduce
In Release 0.28.0 make a request and attempt to cancel it using an AbortSignal. It will fail with the following error:
Code snippet
No response
Expected behavior
Query cancellation should succeed.
Axios Version
0.28.0
Adapter Version
XHR
Browser
any
Browser Version
any
Node.js Version
No response
OS
No response
Additional Library Versions
No response
Additional context/Screenshots
No response
The text was updated successfully, but these errors were encountered: