Skip to content
This repository has been archived by the owner on Oct 24, 2022. It is now read-only.

pygithub3.services.repos.Forks 404 Errors #42

Open
dawsbot opened this issue Dec 21, 2014 · 1 comment
Open

pygithub3.services.repos.Forks 404 Errors #42

dawsbot opened this issue Dec 21, 2014 · 1 comment

Comments

@dawsbot
Copy link

dawsbot commented Dec 21, 2014

No matter how I configure the forks calls, I am getting a 404 error in response to both list and create calls.

g is my authenticated user object

>>> g.repos.forks.list(user='octocat', repo='oct_repo', sort='oldest').all()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/pygithub3/core/result/base.py", line 109, in all
    return list(self.iterator())
  File "/usr/local/lib/python2.7/dist-packages/pygithub3/core/result/base.py", line 104, in iterator
    for page in self:
  File "/usr/local/lib/python2.7/dist-packages/pygithub3/core/result/base.py", line 100, in next
    return self.__next__()
  File "/usr/local/lib/python2.7/dist-packages/pygithub3/core/result/smart.py", line 91, in __next__
    if self.page <= self.pages:
  File "/usr/local/lib/python2.7/dist-packages/pygithub3/core/result/smart.py", line 101, in pages
    return self.getter.last
  File "/usr/local/lib/python2.7/dist-packages/pygithub3/core/result/smart.py", line 47, in last
    self()
  File "/usr/local/lib/python2.7/dist-packages/pygithub3/core/result/smart.py", line 16, in wrapper
    return func(self, page)
  File "/usr/local/lib/python2.7/dist-packages/pygithub3/core/result/smart.py", line 39, in __call__
    response = self.method(page=page)
  File "/usr/local/lib/python2.7/dist-packages/pygithub3/core/client.py", line 84, in get
    response = self.request('get', request, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/pygithub3/core/client.py", line 71, in wrapper
    return func(self, verb, request, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/pygithub3/core/client.py", line 80, in request
    GithubError(response).process()
  File "/usr/local/lib/python2.7/dist-packages/pygithub3/core/errors.py", line 35, in process
    raise raise_error()
  File "/usr/local/lib/python2.7/dist-packages/pygithub3/core/errors.py", line 20, in error_404
    raise NotFound("404 - %s" % self.debug.get('message'))
pygithub3.exceptions.NotFound: 404 - Not Found
@jhallard
Copy link

I also have this problem, the weird thing is it works if I run it on a local script (listing the recent events) but it fails when I run the exact same code on the google app engine.

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

No branches or pull requests

2 participants