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

Abort Signal Cancellation is failing due to incorrect variable name #6260

Open
sean-dickinson opened this issue Feb 26, 2024 · 0 comments
Open

Comments

@sean-dickinson
Copy link

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 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

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