Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Oct 24, 2022. It is now read-only.
This repository was archived by the owner on Oct 24, 2022. It is now read-only.

pygithub3.services.repos.Forks 404 Errors #42

Copy link
Copy link
@dawsbot

Description

@dawsbot
Issue body actions

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.