Skip to content

Conversation

kennyk
Copy link
Contributor

@kennyk kennyk commented Aug 22, 2019

The required isBase64Encoded field was missing, and headers was not correctly formatted. This fixes the "Malformed Lambda proxy response" that caused the method to fail with a 502 status.

Some additional information here:
https://aws.amazon.com/premiumsupport/knowledge-center/malformed-502-api-gateway/

Description of how you validated changes:
I have first created a Function with the javascript in this example, and got the 502. I have then made changes according to the documentation above, and now the correct redirect is returned.

Checklist:

  • Write/update tests
  • make pr passes
  • Update documentation
  • Verify transformed template deploys and application functions as expected
  • Add/update example to examples/2016-10-31

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

The required `isBase64Encoded` field was missing, and `headers` was not correctly formatted. This fixes the "Malformed Lambda proxy response" that caused the method to fail with a 502 status.

Some additional information here:
https://aws.amazon.com/premiumsupport/knowledge-center/malformed-502-api-gateway/
@kennyk kennyk mentioned this pull request Aug 22, 2019
5 tasks
@codecov-io
Copy link

codecov-io commented Aug 22, 2019

Codecov Report

Merging #1096 into develop will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #1096   +/-   ##
========================================
  Coverage    94.72%   94.72%           
========================================
  Files           70       70           
  Lines         3429     3429           
  Branches       675      675           
========================================
  Hits          3248     3248           
  Misses          93       93           
  Partials        88       88

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 017900b...bb0cf3f. Read the comment docs.

@praneetap praneetap assigned keetonian and unassigned praneetap Aug 24, 2019
@keetonian keetonian merged commit 09b799e into aws:develop Aug 27, 2019
@praneetap praneetap mentioned this pull request Sep 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants