Tech Forum Network

Programming, technical solutions and hot scripts
Home » TechQns » GitHub Web Hook POST incomplete and broken up

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    

More Related Questions

  • Writing a git post-receive hook to deal with a specific branch Here's my current hook in a bare repo that lives in the company's server: git push origin master This hooks pushes to Assembla. What i need is to push only one branch (master, ideally) […]
  • Not able to detect branch from Git post-receive hook I've got a post receive hook setup on the remote repo that tries to determine the branch name of the incoming push as follows: $branch = `git rev-parse --abbrev-ref HEAD` What i'm […]
  • Github: readonly access to a private repo I am developing some private projects on Github, and I would like to add nightly cronjobs to my deployments servers to pull the latest version from github. I am currently doing this by […]
  • In Git, how can I write the current commit hash to a file in the same commit I'm trying to do a fancy stuff here with Git hooks, but I don't really know how to do it (or if it's possible). What I need to do is: in every commit I want to take its hash and then […]
  • Creating GitHub repository with only a subset of a local repositorys history The background: I'm moving closer to open sourcing a personal research code I've been working on for more than two years. It started life as an SVN repository, but I moved to Git about a […]
  • Error:fatal: Not a git repository: . when I use gitolite Hooks post-receive to auto deploy code My English is not very good. Please bear with me. I had search this question on stackoverflow and google.But also can't solve this question. I just want to build a auto deploy enviroment […]
  • Pushing to Git returning Error Code 403 fatal: HTTP request failed I was able to clone a copy of this repo over HTTPS authenticated. I've made some commits and want to push back out to the GitHub server. Using Cygwin on Windows 7 […]
  • git push email notification How do I configure the appropriate git hook to send a summary email whenever a set of changes is pushed to the upstream repository?  Asked By - […]
  • Git commit hooks – global settings I've written a Git post-commit hook and it works correctly. However, I want to add this hook to apply to all current (and future) git repositories I am working on. I tried adding the […]
  • Is there a way to skip password typing when using https:// github I recently switched to syncing my repos to https:// in github (due to firewall issues) and it asks for a password every time. It used to be that I had an ssh cert and it was enough. Is […]
0
  
Email
Tags: django, git, github, hook, webhooks

Comments are closed.

Django and mod-wsgi not laoding »
Tech Forum Network powered by WordPress and The Clear Line Theme