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
The MetadataService from @aws-sdk/ec2-metadata-service package ignores timeout config. The config is initialised in the constructor but is never retrieved from the object here or here.
SDK version number
@aws-sdk/ec2-metadata-service@3.565.0
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
Thanks for letting us know. This seems like an oversight. @siddsriv is taking a look.
All the best,
Ran~
RanVaknin
added
p2
This is a standard priority issue
queued
This issues is on the AWS team's backlog
and removed
needs-triage
This issue or PR still needs to be triaged.
labels
May 7, 2024
thanks for reporting this, timeout config option been added for requests. closing this issue, feel free to create a new one if you encounter any other issues.
Checkboxes for prior research
Describe the bug
The MetadataService from @aws-sdk/ec2-metadata-service package ignores timeout config. The config is initialised in the constructor but is never retrieved from the object here or here.
SDK version number
@aws-sdk/ec2-metadata-service@3.565.0
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
v18.18.2
Reproduction Steps
The above has to be run locally where there is no metadata service access.
Observed Behavior
Code hangs for over 30 seconds
Expected Behavior
After 2 seconds the code should return a rejected promise
Possible Solution
The config needs to be passed down to the HttpRequest.
Additional Information/Context
No response
The text was updated successfully, but these errors were encountered: