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(serverless): gracefully fail with 400 for null body #38

Merged
merged 2 commits into from
Sep 17, 2020

Conversation

decompil3d
Copy link
Contributor

It is apparently possible to get a null event.body from API Gateway. Right now, this leads to a TypeError at this console.log statement due to the access of event.body.action. This PR adds logic to gracefully fail early with a 400 error.

@decompil3d
Copy link
Contributor Author

@JasonEtco any chance you can help get this looked at? Thanks!

package.json Outdated Show resolved Hide resolved
Copy link
Contributor

@gr2m gr2m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cheers!

@gr2m gr2m merged commit 6e689c7 into probot:master Sep 17, 2020
@github-actions
Copy link

🎉 This PR is included in version 0.5.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants