arthur-debert / google-code-issues-migrator

A simple script to migrate issues from google code to github.
67 stars 56 forks source link

bad status migrating seemingly ordinary ticket #28

Closed fommil closed 11 years ago

fommil commented 11 years ago

first of all, thanks for this! Real time saver!

Unfortunately, I'm getting this error... dryrun works fine.

python migrateissues.py zibaldone fommil zibaldone -s

Retrieving existing Github issues...
Retrieved 7 issues; identifying ones already migrated...
Not adding issue 1 (exists)
Not adding issue 2 (exists)
Not adding issue 3 (exists)
Not adding issue 4 (exists)
Not adding issue 5 (exists)
Not adding issue 6 (exists)
Not adding issue 7 (exists)
Adding issue 8Usage: migrateissues.py [options] <google project name> <github username> <github project>

Migrate all issues from a Google Code project to a Github project.

Options:
  -h, --help            show this help message and exit
  -a, --assign-owner    Assign owned issues to the Github user
  -b BASE_ID, --base-id=BASE_ID
                        Number of issues in Github before migration
  -d, --dry-run         Don't modify anything on Github
  -p, --omit-priority   Don't migrate priority labels
  -s, --synchronize-ids
                        Ensure that migrated issues keep the same ID
Traceback (most recent call last):
  File "migrateissues.py", line 360, in <module>
    process_gcode_issues(existing_issues)
  File "migrateissues.py", line 276, in process_gcode_issues
    else: github_issue = add_issue_to_github(issue)
  File "migrateissues.py", line 170, in add_issue_to_github
    github_issue = github_repo.create_issue(title, body = body.encode("utf-8"), labels = github_labels)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/github/Repository.py", line 541, in create_issue
    post_parameters
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/github/Requester.py", line 85, in requestJsonAndCheck
    return self.__check(*self.requestJson(verb, url, parameters, input))
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/github/Requester.py", line 108, in requestJson
    return self.__requestEncode(verb, url, parameters, input, encode)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/github/Requester.py", line 143, in __requestEncode
    status, responseHeaders, output = self.__requestRaw(verb, url, requestHeaders, encoded_input)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/github/Requester.py", line 161, in __requestRaw
    response = cnx.getresponse()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1030, in getresponse
    response.begin()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 407, in begin
    version, status, reason = self._read_status()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 395, in _read_status
    raise BadStatusLine(line)
httplib.BadStatusLine: HTTP/1.1 0
fommil commented 11 years ago

???