GitHub Web Hook POST incomplete and broken up
September 29, 2014 | Posted by forumadmin under TechQns |
Comments off
|
So I setup a web hook on GitHub for one of my repos, for when pushes are made to it. I have a Django application running live. I set up a URL for the web hook to post to, and when it recieves the post from GitHub it just prints out the result to the console for now.
I can see however that the full content of the Web Hook is not being delivered. I am using form-urlencode as the content delivery type.
I will update with more information as I get solid debug info
2014-09-29 22:41:27 [(u'payload', [u'{"ref":"refs/heads/master","before":"60d049104b8984ba1334774c6c93847a4de7315e","after":"828537223df5ddc9919671f4c5ece9871391af69","created":false,"deleted":false,"forced":false,"base_ref":null,"compare":"https://github.com/valeyard/SearchDemon/compare/60d049104b89...828537223df5","commits":[{"id":"828537223df5ddc9919671f4c5ece9871391af69","distinct":true,"message":"s","timestamp":"2014-09-29T22:51:08+01:00","url":"https://github.com/valeyard/SearchDemon/commit/828537223df5ddc9919671f4c5ece9871391af69","author":{"name":"valeyard","email":"mrpontius@gmail.com","username":"valeyard"},"committer":{"name":"valeyard","email":"mrpontius@gmail.com","username":"valeyard"},"added":[],"removed":[],"modified":["searchDemonProject/.idea/workspace.xml","searchDemonProject/searchdemon/githubtasks.py"]}],"head_commit":{"id":"828537223df5ddc9919671f4c5ece9871391af69","distinct":true,"message":"s","timestamp":"2014-09-29T22:51:08+
2014-09-29 22:41:27 /api.github.com/repos/valeyard/SearchDemon/pulls{/number}","milestones_url":"https://api.github.com/repos/valeyard/SearchDemon/milestones{/number}","notifications_url":"https://api.github.com/repos/valeyard/SearchDemon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/valeyard/SearchDemon/labels{/name}","releases_url":"https://api.github.com/repos/valeyard/SearchDemon/releases{/id}","created_at":1410819054,"updated_at":"2014-09-24T17:12:44Z","pushed_at":1412027504,"git_url":"git://github.com/valeyard/SearchDemon.git","ssh_url":"git@github.com:valeyard/SearchDemon.git","clone_url":"https://github.com/valeyard/SearchDemon.git","svn_url":"https://github.com/valeyard/SearchDemon","homepage":null,"size":1172,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks"
2014-09-29 22:41:27 Mon Sep 29 17:41:27 2014 - SIGPIPE: writing to a closed pipe/socket/fd (probably the client disconnected) on request /searchdemon/stackcommits/ (ip 10.138.64.83) !!!
2014-09-29 22:41:27 Mon Sep 29 17:41:27 2014 - uwsgi_response_write_headers_do(): Broken pipe [core/writer.c line 229] during POST /searchdemon/stackcommits/ (10.138.64.83)
This is the mess that I get back. You can see from the timestamps from the server that it is being sent in multiple pieces (chunked encoding?) and also it is not sending everything. It just keeps breaking up and in THIS CASE has the weird errors at the end, but that doesnt always happen. It usually just fails to deliver the message properly with no errors
I should add that after GitHub posts this data is reports a 200 OK status
![]() |
Asked By – user1079404 | Read Answers |