Skip to content

github.GithubException.UnknownObjectException #65

@JulienPalard

Description

@JulienPalard

Got this one en production :

Mar 22 16:15:23 sd-160097 gunicorn[21228]: Trying to find PR from created
Mar 22 16:15:23 sd-160097 gunicorn[21228]: Exception on / [POST]
Mar 22 16:15:23 sd-160097 gunicorn[21228]: Traceback (most recent call last):
Mar 22 16:15:23 sd-160097 gunicorn[21228]:   File "/home/pydocteur-afpy-org/venv/lib/python3.7/site-packages/flask/app.py", line 2447, in wsgi_app
Mar 22 16:15:23 sd-160097 gunicorn[21228]:     response = self.full_dispatch_request()
Mar 22 16:15:23 sd-160097 gunicorn[21228]:   File "/home/pydocteur-afpy-org/venv/lib/python3.7/site-packages/flask/app.py", line 1952, in full_dispatch_request
Mar 22 16:15:23 sd-160097 gunicorn[21228]:     rv = self.handle_user_exception(e)
Mar 22 16:15:23 sd-160097 gunicorn[21228]:   File "/home/pydocteur-afpy-org/venv/lib/python3.7/site-packages/flask/app.py", line 1821, in handle_user_exception
Mar 22 16:15:23 sd-160097 gunicorn[21228]:     reraise(exc_type, exc_value, tb)
Mar 22 16:15:23 sd-160097 gunicorn[21228]:   File "/home/pydocteur-afpy-org/venv/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise
Mar 22 16:15:23 sd-160097 gunicorn[21228]:     raise value
Mar 22 16:15:23 sd-160097 gunicorn[21228]:   File "/home/pydocteur-afpy-org/venv/lib/python3.7/site-packages/flask/app.py", line 1950, in full_dispatch_request
Mar 22 16:15:23 sd-160097 gunicorn[21228]:     rv = self.dispatch_request()
Mar 22 16:15:23 sd-160097 gunicorn[21228]:   File "/home/pydocteur-afpy-org/venv/lib/python3.7/site-packages/flask/app.py", line 1936, in dispatch_request
Mar 22 16:15:23 sd-160097 gunicorn[21228]:     return self.view_functions[rule.endpoint](**req.view_args)
Mar 22 16:15:23 sd-160097 gunicorn[21228]:   File "/home/pydocteur-afpy-org/src/pydocteur/app.py", line 45, in process_incoming_payload
Mar 22 16:15:23 sd-160097 gunicorn[21228]:     pr = get_pull_request(payload)
Mar 22 16:15:23 sd-160097 gunicorn[21228]:   File "/home/pydocteur-afpy-org/src/pydocteur/github_api.py", line 44, in get_pull_request
Mar 22 16:15:23 sd-160097 gunicorn[21228]:     return gh_repo.get_pull(issue_number)
Mar 22 16:15:23 sd-160097 gunicorn[21228]:   File "/home/pydocteur-afpy-org/venv/lib/python3.7/site-packages/github/Repository.py", line 2704, in get_pull
Mar 22 16:15:23 sd-160097 gunicorn[21228]:     "GET", self.url + "/pulls/" + str(number)
Mar 22 16:15:23 sd-160097 gunicorn[21228]:   File "/home/pydocteur-afpy-org/venv/lib/python3.7/site-packages/github/Requester.py", line 319, in requestJsonAndCheck
Mar 22 16:15:23 sd-160097 gunicorn[21228]:     verb, url, parameters, headers, input, self.__customConnection(url)
Mar 22 16:15:23 sd-160097 gunicorn[21228]:   File "/home/pydocteur-afpy-org/venv/lib/python3.7/site-packages/github/Requester.py", line 342, in __check
Mar 22 16:15:23 sd-160097 gunicorn[21228]:     raise self.__createException(status, responseHeaders, output)
Mar 22 16:15:23 sd-160097 gunicorn[21228]: github.GithubException.UnknownObjectException: 404 {"message": "Not Found", "documentation_url": "https://docs.githu
b.com/rest/reference/pulls#get-a-pull-request"}  

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions