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
I'm running into the same issue when going to use the DeleteMessageCommand from @aws-sdk/client-sqs.
TypeError: headers[headerName].trim is not a function
at getCanonicalHeaders (/Users/josephlepper/medicoder/intake-email-lambda/service/attachment-summarizer/node_modules/@smithy/signature-v4/dist-cjs/index.js:130:60)
at _SignatureV4S3Express.signRequest (/Users/josephlepper/medicoder/intake-email-lambda/service/attachment-summarizer/node_modules/@smithy/signature-v4/dist-cjs/index.js:493:30)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async _AwsSdkSigV4Signer.sign (/Users/josephlepper/medicoder/intake-email-lambda/service/attachment-summarizer/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js:108:27)
at async /Users/josephlepper/medicoder/intake-email-lambda/service/attachment-summarizer/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js:480:15
at async /Users/josephlepper/medicoder/intake-email-lambda/service/attachment-summarizer/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38
at async /Users/josephlepper/medicoder/intake-email-lambda/service/attachment-summarizer/node_modules/@aws-sdk/middleware-flexible-checksums/dist-cjs/index.js:248:18
at async /Users/josephlepper/medicoder/intake-email-lambda/service/attachment-summarizer/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js:110:22
at async /Users/josephlepper/medicoder/intake-email-lambda/service/attachment-summarizer/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js:138:14
at async /Users/josephlepper/medicoder/intake-email-lambda/service/attachment-summarizer/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:34:22
In my case it seems that x-amz-meta-received_at is a number and not a string as this function expects.
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
@smithy/[email protected]
for the project I'm working on.Here is the diff that solved my problem:
This issue body was partially generated by patch-package.
The text was updated successfully, but these errors were encountered: