React Native - Cannot read property 'metadata' of undefined #6727
Labels
bug
This issue is a bug.
p2
This is a standard priority issue
response-requested
Waiting on additional info and feedback. Will move to \"closing-soon\" in 7 days.
Checkboxes for prior research
Describe the bug
In an attempt to upgrade a mobile app project from aws-sdk v2 to v3, I'm running into an issue with the client-s3 library. We use STS web identity federation credentials and when I create an S3Client with credentials using
fromWebToken
all client.send calls return TypeError: Cannot read property 'metadata' of undefined. Stepping through the call stack reveals this is occurring at client-sts whenstsClient.send(new AssumeRoleWithWebIdentityCommand(params))
is called.configuration.requestHandler
is undefined. Supplying a requestHandler at the S3 client configuration level doesn't appear to help.Regression Issue
SDK version number
@aws-sdk/client-s3@3.709.0, @aws-sdk/credential-providers@3.709.0,
Which JavaScript Runtime is this issue in?
React Native
Details of the browser/Node.js/ReactNative version
Node 18.20.4, react-native 0.76.5
Reproduction Steps
Paste this into App.tsx in a barebones react native application.
package.json
Observed Behavior
TypeError: Cannot read property 'metadata' of undefined
Expected Behavior
STS to resolve successfully
Possible Solution
No response
Additional Information/Context
No response
The text was updated successfully, but these errors were encountered: