GaretJax / lancet

Command line utility to streamline various development activities.
MIT License
9 stars 5 forks source link

Weird lancet pr fail #17

Closed vxsx closed 9 years ago

vxsx commented 9 years ago

I tried lancet pr and got this

± % lancet pr                                                                                                                                                                                                                                                    !11405 9:16:51
 ✓  Retrieved issue PRJ-250: some text
 ✓  Pushed latest changes to "origin"
 ✗  ConnectionError: ('Connection aborted.', BadStatusLine("''",))
Traceback (most recent call last):
  File "/Users/divio/.local/venvs/lancet/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py", line 353, in _make_request
    httplib_response = conn.getresponse(buffering=True)
TypeError: getresponse() got an unexpected keyword argument 'buffering'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/divio/.local/venvs/lancet/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py", line 518, in urlopen
    body=body, headers=headers)
  File "/Users/divio/.local/venvs/lancet/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py", line 355, in _make_request
    httplib_response = conn.getresponse()
  File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/http/client.py", line 1172, in getresponse
    response.begin()
  File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/http/client.py", line 351, in begin
    version, status, reason = self._read_status()
  File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/http/client.py", line 321, in _read_status
    raise BadStatusLine(line)
http.client.BadStatusLine: ''

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/divio/.local/venvs/lancet/lib/python3.4/site-packages/requests/adapters.py", line 370, in send
    timeout=timeout
  File "/Users/divio/.local/venvs/lancet/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py", line 564, in urlopen
    _pool=self, _stacktrace=stacktrace)
  File "/Users/divio/.local/venvs/lancet/lib/python3.4/site-packages/requests/packages/urllib3/util/retry.py", line 245, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/Users/divio/.local/venvs/lancet/lib/python3.4/site-packages/requests/packages/urllib3/packages/six.py", line 309, in reraise
    raise value.with_traceback(tb)
  File "/Users/divio/.local/venvs/lancet/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py", line 518, in urlopen
    body=body, headers=headers)
  File "/Users/divio/.local/venvs/lancet/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py", line 355, in _make_request
    httplib_response = conn.getresponse()
  File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/http/client.py", line 1172, in getresponse
    response.begin()
  File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/http/client.py", line 351, in begin
    version, status, reason = self._read_status()
  File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/http/client.py", line 321, in _read_status
    raise BadStatusLine(line)
requests.packages.urllib3.exceptions.ProtocolError: ('Connection aborted.', BadStatusLine("''",))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/divio/.local/bin/lancet", line 9, in <module>
    load_entry_point('lancet==0.5.1', 'console_scripts', 'lancet')()
  File "/Users/divio/.local/venvs/lancet/lib/python3.4/site-packages/click/core.py", line 610, in __call__
    return self.main(*args, **kwargs)
  File "/Users/divio/.local/venvs/lancet/lib/python3.4/site-packages/click/core.py", line 590, in main
    rv = self.invoke(ctx)
  File "/Users/divio/.local/venvs/lancet/lib/python3.4/site-packages/click/core.py", line 936, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/divio/.local/venvs/lancet/lib/python3.4/site-packages/click/core.py", line 782, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/divio/.local/venvs/lancet/lib/python3.4/site-packages/click/core.py", line 416, in invoke
    return callback(*args, **kwargs)
  File "/Users/divio/work/lancet/lancet/cli.py", line 400, in pull_request
    body.strip('\n'))
  File "/Users/divio/.local/venvs/lancet/lib/python3.4/site-packages/github3/decorators.py", line 38, in auth_wrapper
    return func(self, *args, **kwargs)
  File "/Users/divio/.local/venvs/lancet/lib/python3.4/site-packages/github3/repos/repo.py", line 719, in create_pull
    return self._create_pull(data)
  File "/Users/divio/.local/venvs/lancet/lib/python3.4/site-packages/github3/repos/repo.py", line 294, in _create_pull
    json = self._json(self._post(url, data=data), 201)
  File "/Users/divio/.local/venvs/lancet/lib/python3.4/site-packages/github3/models.py", line 145, in _post
    return self._session.post(url, data, **kwargs)
  File "/Users/divio/.local/venvs/lancet/lib/python3.4/site-packages/requests/sessions.py", line 504, in post
    return self.request('POST', url, data=data, json=json, **kwargs)
  File "/Users/divio/.local/venvs/lancet/lib/python3.4/site-packages/github3/session.py", line 81, in request
    response = super(GitHubSession, self).request(*args, **kwargs)
  File "/Users/divio/.local/venvs/lancet/lib/python3.4/site-packages/requests/sessions.py", line 461, in request
    resp = self.send(prep, **send_kwargs)
  File "/Users/divio/.local/venvs/lancet/lib/python3.4/site-packages/requests/sessions.py", line 573, in send
    r = adapter.send(request, **kwargs)
  File "/Users/divio/.local/venvs/lancet/lib/python3.4/site-packages/requests/adapters.py", line 415, in send
    raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', BadStatusLine("''",))

Second time went ok.

GaretJax commented 9 years ago

@vxsx did this happen again?