-
Notifications
You must be signed in to change notification settings - Fork 64
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
Gith responding to github with status 200 but callback not called. #20
Comments
I am also noticing this issue. |
I ran into this issue when using github enterprise. I'm also using Ubuntu 14.04. I'm not sure if the webhooks are formatted differently for GH:E, but in digging through the if ( /^payload=/.test( data ) ) {
var payload = JSON.parse( querystring.unescape(data.slice(8)) ); There is no if ( data ) {
var payload = JSON.parse( querystring.unescape(data) ); after that, it works great. Perhaps the solution is to test for if ( data ) {
data = data.replace(/^payload=/,"");
var payload = JSON.parse( querystring.unescape(data) ); |
+1 on seeing the same behaviour. Can also confirm the above comment fixes the issue. |
+1 for fixing this |
I'm still seeing this. |
Same here. Seems like a project is dead... |
I'm also seeing this problem. Github is telling me it's fired correctly and i'm definitely listening to the push event but it's not logging out. I'm also using Ubuntu 14.04 |
@dcharbonnier changing to that content type seems to work correctly. Though I would think this should work with the default settings on github. |
@dcharbonnier thanks for getting back to me. I couldn't get it working so I opted for a much simpler hand-crafted Sinatra app. Out of interest what's the benefit of using gith over something like a lightweight Sinatry app aside from the fact that you don't have to ensure a separate process is running? |
If gith doesn't properly handle the format, it should return an appropriate status code, or at least provide some sort of feedback. |
I was also having trouble with this. Changing the content type to application/x-www-form-urlencoded fixed this issue! Thanks @dcharbonnier |
I have beem attempting to implement git hooks with gith have had no luck.
Even the very simple example below does not behave as I would expect.
Status code 200 is being returned to github, so the gith server
is obviously running, but the callback is not ever being called.
For the record I'm using Ubuntu 14.04 x64
The text was updated successfully, but these errors were encountered: