logsol / Github-Auto-Deploy

a server that allows you to automatically deploy the latest version of your github project at each git push
http://logsol.github.com/Github-Auto-Deploy/
MIT License
576 stars 187 forks source link

Error when receiving POST #7

Closed markdorison closed 11 years ago

markdorison commented 11 years ago

Github-Auto-Deploy is outputting the following error when testing the connection between Github and my server. I have tried putting both the HTTPS and SSH url's for my repository in the url field of the conf file. Any ideas?

Post push request received
----------------------------------------
Exception happened during processing of request from ('108.171.174.178', 42886)
Traceback (most recent call last):
  File "/usr/lib64/python2.6/SocketServer.py", line 283, in _handle_request_noblock
    self.process_request(request, client_address)
  File "/usr/lib64/python2.6/SocketServer.py", line 309, in process_request
    self.finish_request(request, client_address)
  File "/usr/lib64/python2.6/SocketServer.py", line 322, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib64/python2.6/SocketServer.py", line 617, in __init__
    self.handle()
  File "/usr/lib64/python2.6/BaseHTTPServer.py", line 329, in handle
    self.handle_one_request()
  File "/usr/lib64/python2.6/BaseHTTPServer.py", line 323, in handle_one_request
    method()
  File "GitAutoDeploy.py", line 39, in do_POST
    self.pull(path)
  File "GitAutoDeploy.py", line 66, in pull
    print 'Updating ' + path
TypeError: cannot concatenate 'str' and 'NoneType' objects
----------------------------------------
markdorison commented 11 years ago

The problem was that the repo url was configured incorrectly and was not matching the data coming from the POST.