S3 Object Lambda Function v4signature error

0

I am calling "WriteGetObjectResponseCommand" from a S3 object lambda function - there shouldn't be a need to manually set credentials within the event handler - and getting an error related to SignatureV4: Error TypeError: Cannot read property 'trim' of undefined at Object.getCanonicalHeaders (/opt/nodejs/node_modules/@aws-sdk/signature-v4/dist-cjs/getCanonicalHeaders.js:17:62) at SignatureV4.signRequest (/opt/nodejs/node_modules/@aws-sdk/signature-v4/dist-cjs/SignatureV4.js:97:56) at async StandardRetryStrategy.retry (/opt/nodejs/node_modules/@aws-sdk/middleware-retry/dist-cjs/StandardRetryStrategy.js:51:46) at async /opt/nodejs/node_modules/@aws-sdk/middleware-logger/dist-cjs/loggerMiddleware.js:6:22 at async /var/task/index.js:78:26 at async /var/task/index.js:66:9 at async Runtime.lambdaHandler [as handler] (/var/task/index.js:57:5)

질문됨 2년 전594회 조회
1개 답변
0

Hello,

Please refer the requester to the following: https://github.com/aws/aws-sdk-js-v3/issues/2725

Let us know if there are any questions.

AWS
지원 엔지니어
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠