-
Notifications
You must be signed in to change notification settings - Fork 586
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
AbortSignal overwrites onabort rather than using addEventListener, preventing multiple use #4872
AbortSignal overwrites onabort rather than using addEventListener, preventing multiple use #4872
Comments
@RanVaknin |
Using the latest AWS SDK and doing a fresh install overwriting any existing lockfiles to get version 3.1.0 of the |
in a future update to the AWS SDK for JavaScript (v3), we will raise the minimum version of those http-handlers to bring in the fix automatically as well. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread. |
Checkboxes for prior research
Describe the bug
The
AbortSignal
interface (spec) definesAbortSignal
as extending the EventTarget interface, which provides theaddEventListener
method for defining event listeners.When an
AbortSignal
is passed to client calls, theonabort
method is used instead for signaling aborts. This is unexpected, as this behaves differently than standard functions that acceptAbortSignal
arguments. It also prevents the sameAbortSignal
from being used for simultaneous SDK calls.SDK version number
@aws-sdk/[email protected],@aws-sdk/[email protected]
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
v20.3.0
Reproduction Steps
Observed Behavior
Expected Behavior
I expected both
.invoke
calls to fail with a "Request aborted" error.Possible Solution
Update the internal
AbortSignal
type to extendEventTarget
, and use addEventListener throughout the SDK to register abort handlers.Additional Information/Context
No response
The text was updated successfully, but these errors were encountered: