Bug 1070968

Summary: [abrt] devassistant: Requester.py:103:__check:UnknownObjectException: 404 {u'documentation_url': u'http://developer.github.com/v3', u'message': u'Not Found'}
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: devassistantAssignee: Bohuslav "Slavek" Kabrda <bkabrda>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: bkabrda, phracek
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/0422634844ecf6cefce1a7bb953cc73404e17794
Whiteboard: abrt_hash:f5cf1b0ceb2b4af54c1a0d87053d4dfbcb8d4071
Fixed In Version: devassistant-0.8.0-2.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-11 04:13:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: environ none

Description Miro Hrončok 2014-02-27 20:19:02 UTC
Description of problem:
da crt python django --github hroncok --name installfest

Version-Release number of selected component:
devassistant-0.8.0-1.fc20

Additional info:
reporter:       libreport-2.1.12
cmdline:        /usr/bin/python /usr/bin/da crt python django --github hroncok --name installfest
dso_list:       python-PyGithub-1.14.2-3.fc20.noarch
executable:     /usr/bin/da
kernel:         3.12.10-300.fc20.x86_64
runlevel:       N 5
type:           Python
uid:            1000

Truncated backtrace:
Requester.py:103:__check:UnknownObjectException: 404 {u'documentation_url': u'http://developer.github.com/v3', u'message': u'Not Found'}

Traceback (most recent call last):
  File "/usr/bin/da", line 9, in <module>
    load_entry_point('devassistant==0.8.0', 'console_scripts', 'da')()
  File "/usr/lib/python2.7/site-packages/devassistant/cli/cli_runner.py", line 56, in run
    to_run.run(**vars(parsed_args))
  File "/usr/lib/python2.7/site-packages/devassistant/path_runner.py", line 46, in run
    self._run_path_run('', parsed_args)
  File "/usr/lib/python2.7/site-packages/devassistant/path_runner.py", line 31, in _run_path_run
    self.path[-1].run(stage, parsed_args)
  File "/usr/lib/python2.7/site-packages/devassistant/yaml_assistant.py", line 26, in inner
    return method(self, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/devassistant/yaml_assistant.py", line 210, in run
    lang.run_section(getattr(self, to_run, {}), kwargs, runner=self)
  File "/usr/lib/python2.7/site-packages/devassistant/lang.py", line 66, in run_section
    retval = run_section(to_run, kwargs, runner=runner)
  File "/usr/lib/python2.7/site-packages/devassistant/lang.py", line 85, in run_section
    kwargs).run()
  File "/usr/lib/python2.7/site-packages/devassistant/command.py", line 28, in run
    return cr.run(self)
  File "/usr/lib/python2.7/site-packages/devassistant/command_runners.py", line 396, in run
    ret = cls._github_create_and_push(**kwargs)
  File "/usr/lib/python2.7/site-packages/devassistant/remote_auth.py", line 132, in inner
    cls._github_create_ssh_key()
  File "/usr/lib/python2.7/site-packages/devassistant/remote_auth.py", line 88, in _github_create_ssh_key
    for key in cls._user.get_keys():
  File "/usr/lib/python2.7/site-packages/github/PaginatedList.py", line 37, in __iter__
    newElements = self.__grow()
  File "/usr/lib/python2.7/site-packages/github/PaginatedList.py", line 49, in __grow
    newElements = self._fetchNextPage()
  File "/usr/lib/python2.7/site-packages/github/PaginatedList.py", line 108, in _fetchNextPage
    headers, data = self.__requester.requestJsonAndCheck("GET", self.__nextUrl, self.__nextParams, None)
  File "/usr/lib/python2.7/site-packages/github/Requester.py", line 95, in requestJsonAndCheck
    return self.__check(*self.requestJson(verb, url, parameters, input))
  File "/usr/lib/python2.7/site-packages/github/Requester.py", line 103, in __check
    raise self.__createException(status, output)
UnknownObjectException: 404 {u'documentation_url': u'http://developer.github.com/v3', u'message': u'Not Found'}

Local variables in innermost frame:
status: 404
output: {u'documentation_url': u'http://developer.github.com/v3', u'message': u'Not Found'}
responseHeaders: {'status': '404 Not Found', 'x-ratelimit-remaining': '4994', 'x-github-media-type': 'github.beta; format=json', 'x-content-type-options': 'nosniff', 'access-control-expose-headers': 'ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval', 'x-github-request-id': '53D0D1E5:3EA0:167933B:530F9D1D', 'x-accepted-oauth-scopes': 'admin:public_key, read:public_key, write:public_key', 'content-length': '76', 'server': 'GitHub.com', 'x-ratelimit-limit': '5000', 'access-control-allow-credentials': 'true', 'date': 'Thu, 27 Feb 2014 20:16:30 GMT', 'access-control-allow-origin': '*', 'content-type': 'application/json; charset=utf-8', 'x-oauth-scopes': 'repo, user', 'x-ratelimit-reset': '1393535613'}
self: <github.Requester.Requester instance at 0x317da70>

Comment 1 Miro Hrončok 2014-02-27 20:19:07 UTC
Created attachment 868719 [details]
File: backtrace

Comment 2 Miro Hrončok 2014-02-27 20:19:11 UTC
Created attachment 868720 [details]
File: environ

Comment 3 Miro Hrončok 2014-02-27 20:45:22 UTC
Happens also on git master.

I had to remove the token from Github and from git config to workaround it.

Comment 4 Fedora Update System 2014-03-04 15:15:30 UTC
devassistant-0.8.0-2.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/devassistant-0.8.0-2.fc20

Comment 5 Fedora Update System 2014-03-05 05:14:14 UTC
Package devassistant-0.8.0-2.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing devassistant-0.8.0-2.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-3444/devassistant-0.8.0-2.fc20
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2014-03-11 04:13:33 UTC
devassistant-0.8.0-2.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.