New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
headers[headerName].trim is not a function" #1097
Comments
Internally this middleware does I not able to reproduce at this moment, are you able to dig a little deeper? |
I was also thinking this is from the AWS SDK. What version are you using? I'm using this "aws-sdk": "^2.1425.0", |
The current version of middy only supports v3 |
Anyway this can be added to the docs? Final issue is I don't use the SDK anywhere in my code. |
Install v3 is already in the docs
I don't think so. |
Found the issue, fix will be in next release. |
Describe the bug
When using the middy s3 middleware on AWS, I always get the error below.
I've double checked and all the items I'm passing to fetch data are correct. My function also has the required IAM role.
To me, the error looks like it's from a node module or the AWS client middy is using.
To Reproduce
How to reproduce the behaviour:
Sample code:
Error message:
TypeError: headers[headerName].trim is not a function"
Expected behaviour
s3 Middleware should be used without errors.
Environment:
Node.js: 18
Middy: 4.6.1
The text was updated successfully, but these errors were encountered: