-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Invalid API Gateway Response Keys: set([u'multiValueHeaders']) in with sam local start-api
#1190
Comments
sam local start-api
Duplicate of #830 Closing |
At the root of it, we need to support multiValueHeaders. So the ask here is the same as the other issue. |
The issue though seems to be that something is preventing from even a basic hello world from succeeding in my codebase. All my lambdas are currently failing with 502 HTTP errors, something changed that introduced the |
Reverting to
When I manually removed the references in structs to multivalue in these files:
The 502s stopped with this change, but instead of settling with this as a temporary fix, I just reverted to 0.15.0 and the problem went away. I think this is a separate issue worth investigating. The 502 is harsh given that other aws official libs are automatically sending that header. It wasn't fun to suddenly have everything break on me without any changes on my part. Having said that, I appreciate the value this tool brings and am grateful for all the work that has gone into it. Just providing some feedback about user experience. |
@btipling So there are multiple things at play here. We made some of our validation on returns (in the Api Gateway context) to match what the service does. When doing this, we did not add support for |
@jfuss can we patch a fix in for now till the proper fix is merged and released? |
We have an open PR that is currently being iterated on. Downgrading the CLI will be the path forward until we merge the PR and release. |
Reverting to 0.15.0 worked for me too. 0.15.0 release link: https://github.com/awslabs/aws-sam-cli/releases/tag/v0.15.0 |
Can anyone provide instructions to downgrade? I cannot do it with brew. I am getting the same error as above:
|
@thomasdane if you look at your output closely, you will see that /var/task/main does not exist. This is most likely due to docker shared setting not being configured to allow the directory. If your on windows and already have the drive shared correctly, toggling the setting is the best way to get docker to remember it can share. Your error does not relate to this issue. |
For Kotlin: |
on
I have this error when running locally, deploying using the guided switch also fails with internal server error when invoked |
Description
I am trying to test my local function with
sam local start-api
but it appears to make an useless validation to the response.Observed result
Expected result
Describe what you expected.
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
sam --version
: SAM CLI, version 0.16.0The text was updated successfully, but these errors were encountered: