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

Import doesn't work (HTTP Error 410: Gone) #10

Closed
jeevatkm opened this issue Sep 18, 2013 · 1 comment
Closed

Import doesn't work (HTTP Error 410: Gone) #10

jeevatkm opened this issue Sep 18, 2013 · 1 comment
Labels

Comments

@jeevatkm
Copy link

Import issues is not working when source and target repo name is similar on forked repo. Throws an error.

For example:
Source: xxxxxx/SampleRepo
Target: yyyyyy/SampleRepo

Error Log:

Traceback (most recent call last):
  File "gh-issues-import.py", line 307, in 
    import_all_open_issues()
  File "gh-issues-import.py", line 297, in import_all_open_issues
    return import_issues(issues)
  File "gh-issues-import.py", line 184, in import_issues
    known_milestones = get_milestones(target_url)
  File "gh-issues-import.py", line 116, in get_milestones
    return send_get_request("%s/milestones?state=open" % url)
  File "gh-issues-import.py", line 111, in send_get_request
    response = urllib.request.urlopen(url)
  File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/urllib/request.py", line 156, in urlopen
    return opener.open(url, data, timeout)
  File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/urllib/request.py", line 475, in open
    response = meth(req, response)
  File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/urllib/request.py", line 587, in http_response
    'http', request, response, code, msg, hdrs)
  File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/urllib/request.py", line 513, in error
    return self._call_chain(*args)
  File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/urllib/request.py", line 447, in _call_chain
    result = func(*args)
  File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/urllib/request.py", line 595, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 410: Gone
@jeevatkm
Copy link
Author

@IQAndreas - Reslove it by enabling Issues setting in Forked Repo.

Steps I followed:

  • Go to the Settings page of your forked repo
  • Check the box next to Issues

Then executed your script :) Issues import successful.

Cheers,
Jeeva

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

No branches or pull requests

1 participant