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

github.GithubException.UnknownObjectException #65

Open
JulienPalard opened this issue Mar 22, 2021 · 0 comments
Open

github.GithubException.UnknownObjectException #65

JulienPalard opened this issue Mar 22, 2021 · 0 comments

Comments

@JulienPalard
Copy link
Contributor

JulienPalard commented Mar 22, 2021

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"}  
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant