We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, So I'm sometimes running into this issue where on the following line there is raising a runtime error where binarySettings.contentEncodings is undefined. https://github.com/vendia/serverless-express/blob/mainline/src/is-binary.js#L10
binarySettings.contentEncodings
I'm not sure how this is happening but I've followed the trail up to the following two links if that helps. https://github.com/vendia/serverless-express/blob/mainline/src/proxy.js#L28 https://github.com/vendia/serverless-express/blob/mainline/src/index.js#L17-L22
The following is the stacktrace I'm getting back from my lambda function.
ERROR Unhandled Promise Rejection { "errorType": "Runtime.UnhandledPromiseRejection", "errorMessage": "TypeError: Cannot read property 'some' of undefined", "reason": { "errorType": "TypeError", "errorMessage": "Cannot read property 'some' of undefined", "stack": [ "TypeError: Cannot read property 'some' of undefined", " at /var/task/node_modules/.pnpm/@vendia/serverless-express@4.3.1/node_modules/@vendia/serverless-express/src/is-binary.js:10:40", " at Array.some (<anonymous>)", " at isContentEncodingBinary (/var/task/node_modules/.pnpm/@vendia/serverless-express@4.3.1/node_modules/@vendia/serverless-express/src/is-binary.js:10:6)", " at isBinary (/var/task/node_modules/.pnpm/@vendia/serverless-express@4.3.1/node_modules/@vendia/serverless-express/src/is-binary.js:40:10)", " at forwardResponse (/var/task/node_modules/.pnpm/@vendia/serverless-express@4.3.1/node_modules/@vendia/serverless-express/src/transport.js:17:27)", " at forwardRequestToNodeServer (/var/task/node_modules/.pnpm/@vendia/serverless-express@4.3.1/node_modules/@vendia/serverless-express/src/transport.js:139:3)", " at processTicksAndRejections (internal/process/task_queues.js:93:5)" ] }, "promise": {}, "stack": [ "Runtime.UnhandledPromiseRejection: TypeError: Cannot read property 'some' of undefined", " at process.<anonymous> (/var/runtime/index.js:35:15)", " at process.emit (events.js:315:20)", " at process.EventEmitter.emit (domain.js:467:12)", " at processPromiseRejections (internal/process/promises.js:245:33)", " at processTicksAndRejections (internal/process/task_queues.js:94:32)" ] }
More context around this sometimes happening is that when I remove Accept-Encoding from the headers the error is not raised. Very confusing.
Accept-Encoding
Any and all help on this issue would be much appreciated.
Package deps:
"dependencies": { "@vendia/serverless-express": "^4.3.1", "compression": "^1.7.4", "express": "^4.17.1", "express-validator": "^6.9.2", "helmet": "^4.4.1" },
The text was updated successfully, but these errors were encountered:
Hi @anthonyalmarza, could you provide relevant parts from your Lambda handler? Are you setting binarySettings?
binarySettings
Sorry, something went wrong.
e0bd86e
chore(release): 4.3.2 [skip ci]
c68778b
## [4.3.2](v4.3.1...v4.3.2) (2021-02-18) ### Bug Fixes * default contentEncodings and contentTypes to constants ([e0bd86e](e0bd86e)), closes [#373](#373) * refactor proxy and add deprecation warnings ([d50b7e7](d50b7e7))
🎉 This issue has been resolved in version 4.3.2 🎉
The release is available on:
Your semantic-release bot 📦🚀
09ee72c
## [4.3.2](CodeGenieApp/serverless-express@v4.3.1...v4.3.2) (2021-02-18) ### Bug Fixes * default contentEncodings and contentTypes to constants ([e0bd86e](CodeGenieApp/serverless-express@e0bd86e)), closes [#373](CodeGenieApp/serverless-express#373) * refactor proxy and add deprecation warnings ([d50b7e7](CodeGenieApp/serverless-express@d50b7e7))
No branches or pull requests
Hi, So I'm sometimes running into this issue where on the following line there is raising a runtime error where
binarySettings.contentEncodings
is undefined.https://github.com/vendia/serverless-express/blob/mainline/src/is-binary.js#L10
I'm not sure how this is happening but I've followed the trail up to the following two links if that helps.
https://github.com/vendia/serverless-express/blob/mainline/src/proxy.js#L28
https://github.com/vendia/serverless-express/blob/mainline/src/index.js#L17-L22
The following is the stacktrace I'm getting back from my lambda function.
More context around this sometimes happening is that when I remove
Accept-Encoding
from the headers the error is not raised. Very confusing.Any and all help on this issue would be much appreciated.
Package deps:
The text was updated successfully, but these errors were encountered: