Skip to content

@aws-sdk/credential-providers 3.730.0 credentials is missing error #6816

@samchungy

Description

@samchungy

Checkboxes for prior research

Describe the bug

We ran into an error on Lambda when we bumped up our credential-providers package to 3.730.0.

err: {
     message: `credentials` is missing
     stack: Error: `credentials` is missing
    at credentialsProvider (/var/task/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js:211:15)
    at boundCredentialsProvider (/var/task/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js:215:71)
    at /var/task/node_modules/@smithy/core/dist-cjs/index.js:85:23
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async /var/task/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22
    at async /var/task/node_modules/@aws-sdk/credential-providers/dist-cjs/fromTemporaryCredentials.js:50:33
    at async coalesceProvider (/var/task/node_modules/@smithy/core/dist-cjs/index.js:368:18)
    at async /var/task/node_modules/@smithy/core/dist-cjs/index.js:386:18
    at async /var/task/node_modules/@smithy/core/dist-cjs/index.js:85:17
    at async /var/task/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22
     type: Error
   }

I couldn't quite spot much in the diff: https://npmdiff.dev/%40aws-sdk%2Fcredential-providers/3.729.0/3.730.0/

Regression Issue

  • Select this option if this issue appears to be a regression.

SDK version number

@aws-sdk/[email protected]

Which JavaScript Runtime is this issue in?

Node.js

Details of the browser/Node.js/ReactNative version

Node 20.18.0, Node 22.

Reproduction Steps

https://github.com/samchungy/aws-credentials-provider-bug

Observed Behavior

fromTemporaryCredentials throws an error

Expected Behavior

It should not throw an error when using fromTemporaryCredentials

Possible Solution

No response

Additional Information/Context

No response

Metadata

Metadata

Assignees

Labels

bugThis issue is a bug.closing-soonThis issue will automatically close in 4 days unless further comments are made.p1This is a high priority issuepotential-regressionMarking this issue as a potential regression to be checked by team member

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions