Skip to content
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

fix(aws-lambda): add better type and error handling on proxy integration mode #11413

Merged
merged 4 commits into from
Aug 16, 2023

Conversation

windmgc
Copy link
Member

@windmgc windmgc commented Aug 16, 2023

Summary

This PR adds better type handling and error handling for proxy integration mode. One change comes from #11350 is that if lambda function's response body is application/json then it will be automatically decoded by AWS lib. We handle this situation better and make sure it gets tested in our integration test.

Checklist

Full changelog

  • Fix the problem that lambda cannot extract a json encoded proxy integration response

@windmgc windmgc marked this pull request as ready for review August 16, 2023 05:26
@windmgc windmgc merged commit a07657e into master Aug 16, 2023
21 checks passed
@windmgc windmgc deleted the fix-lambda-plugin-better-error-handling branch August 16, 2023 06:18
windmgc added a commit that referenced this pull request Nov 2, 2023
…ion mode (#11413)

* tests(aws-lambda): add response content type for multiple tests, add proxy integration test for sam

* fix(aws-lambda): better type & error handling when extracting proxy response

* tests(aws-lambda): fix test

* docs(changelog): add missing changelog
windmgc added a commit that referenced this pull request Nov 3, 2023
…ion mode (#11413)

* tests(aws-lambda): add response content type for multiple tests, add proxy integration test for sam

* fix(aws-lambda): better type & error handling when extracting proxy response

* tests(aws-lambda): fix test

* docs(changelog): add missing changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants