Skip to content
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

httplib.BadStatusLine: '' - probably changes of GitHub API affecting the script #212

Open
DoppioJP opened this issue Aug 22, 2013 · 0 comments

Comments

@DoppioJP
Copy link

I managed to run the script with the correction I made (see #211) but it failed on the create_issue method https://github.com/collective/collective.developermanual/blob/master/gh-issues-import.py#L196 with the message

httplib.BadStatusLine: ''

The basic authentication works fine for getting the collection of issues to be exported to the cloned repository, but then it seems like that doesn't work for post while creating the issue. Could it be that GitHub API doesn't allow it anymore?

The full log:

Loaded issues  1 30
Loaded issues  2 1
Loaded issues  3 0
Importing issue Here is the name of the issue on GitHub I want to export (59)
Traceback (most recent call last):
  File "/gh-issues-import.py", line 274, in <module>
    main()
  File "/gh-issues-import.py", line 270, in main
    import_issues(issues, milestones, labels)
  File "/gh-issues-import.py", line 138, in import_issues
    import_issue(source, dst_milestones, dst_labels)
  File "/gh-issues-import.py", line 169, in import_issue
    res_issue = create_issue(dst_url, source["title"], body, assignee, milestone, labels)
  File "/gh-issues-import.py", line 197, in create_issue
    res = urllib2.urlopen(req)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 126, in urlopen
    return _opener.open(url, data, timeout)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 394, in open
    response = self._open(req, data)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 412, in _open
    '_open', req)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 372, in _call_chain
    result = func(*args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1207, in https_open
    return self.do_open(httplib.HTTPSConnection, req)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1170, in do_open
    r = h.getresponse(buffering=True)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1027, in getresponse
    response.begin()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 407, in begin
    version, status, reason = self._read_status()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 371, in _read_status
    raise BadStatusLine(line)
httplib.BadStatusLine: ''

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant