-
Notifications
You must be signed in to change notification settings - Fork 79
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
400 Invalid JSON in response from GitHub hooks #75
Comments
What was the request headers and payload? |
@gr2m
Payload:
|
Why did you add webhooks.on('*', ({ id, name, signature, payload }) => {
await webhooks.verifyAndReceive({
id,
name,
signature,
payload
})
}) That’s already implemented in webhooks.js/middleware/middleware.js Lines 46 to 50 in 0ec1574
I don’t think it is the problem here, but worth a try |
@gr2m I'm removed this section, but it does not help. |
@gr2m Why You just +1 for my comment? |
to acknowledge that I saw your comment. I tried to reproduce your problem but had no luck so far: https://runkit.com/gr2m/octokit-webhooks-js-75/1.0.0 My best guess is that the problem might be a character in the Russian commit message, but that seems to be fine. Can you further reduce your code? Maybe use this for your webhooks.on('push', async () => {
console.log('ok')
}) The next thing we could try is creating a test repository and a tiny app that uses |
Any luck @YChebotaev |
@gr2m No, I'm stopped using this library. |
This is what GitHub tells me: https://ibb.co/Cmw9wBp
My setup: https://gist.github.com/YChebotaev/ecd701c195fa4bd1383126969336bdda
Help, please.
The text was updated successfully, but these errors were encountered: