-
Notifications
You must be signed in to change notification settings - Fork 36
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
Undefined event name in webhook handler #12
Comments
In my case the header is |
Can y'all see what |
This is what I see in Cloudwatch logs
|
@JasonEtco it does contain headers. It's been a while but iirc, on the GitHub bot manage page the header sometimes gets displayed as |
Got @JasonEtco yes, content of {
Host: '127.0.0.1:3000',
'User-Agent': 'insomnia/6.3.2',
'Content-Type': 'application/json',
'X-Github-Event': 'push',
'X-Hub-Signature': 'sha1=b6443ae5abd9f8fea47e09ab4eb9b3d00616317b',
'X-Github-Delivery': 'dd1c4022-4631-11e9-8c4d-7e06af5c5b2e',
Accept: '*/*',
'Content-Length': '8949',
'X-Forwarded-Proto': 'http',
'X-Forwarded-Port': '3000'
} |
Part of me just wants to figure out where the lowercase Will get that tested and pushed to npm. Thanks for the discussion and help fixing it everyone! |
Http header names are case insensitive per the spec, so #14 is the way to go IMO |
Just started using probot and while debugging noticed this:
Traced it to
https://github.com/probot/serverless-lambda/blob/ee2e66125b930552d647e12676ef98b19fe10688/index.js#L45
Github might have changed the headers sent because at some point my bot was working:
Current header has a slight spelling difference.
EDIT: GitHub seems to have fixed the header issue in their request but making this more robust would still be a good idea.The text was updated successfully, but these errors were encountered: