-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
GithubIntegration.get_access_token broken? #2541
Comments
If after your code changes, your code does not work with the pygithub version that worked for 2 months, than your code changes might have caused it. How do you create |
@EnricoMi Thanks for the reply, and the initial hint. I was indeed not using the correct After making sure I was using the correct
This made me scratch my head a bit again, but I then realized that I wasn't using the correct private key when creating the Once that was fixed, it's working as expected again (with PyGithub 1.58.2 and Python 3.9). Thanks a lot for giving me a push in the right direction! I think this shows that error reporting could be a bit more informative, would you agree? You basically need to make sure that the Do you think there's room for improvement there? |
Method
What other checks would you suggest? |
I'm not sure if it's possible, or how easy it would be, but PyGithub could check:
Again, I'm not sure how easy/hard this is, but more meaningful error messages would definitely have helped me to understand where I was wrong. |
The code base in this project tries to minimize Github API calls. All that methods can check are the provided arguments. Checking if objects exist (like installation id) should be redundant, because a 404 error is raised as soon as that invalid id is used. So Your first error ( |
I'm hitting problems with a GitHub App that is using
GithubIntegration.get_access_token
.It was working fine before (and running for 2 months), but a restart of the app after some code changes now leads to trouble.
When using PyGithub 1.57 with Python 3.9 (or earlier, I was still running PyGithub 1.55 with Python 3.6 when first hitting this), I get:
After updating to the latest PyGithub 1.58.2 with Python 3.9, I get:
Is
GithubIntegration.get_access_token
known to be broken currently, or am I overlooking something?I have already replaced the webhook secret, but that doesn't make a difference.
I looked into #2431, but that seems like a different problem.
The text was updated successfully, but these errors were encountered: