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

Fix GitHub authentication #766

Merged
merged 2 commits into from
Mar 8, 2024

Conversation

daniel-beck
Copy link
Contributor

Apparently, GitHub silently (?) changed how unauthenticated API use works: Rather than get an authentication challenge, after the rate limit is reached, an error is returned.

This PR implements preemptive authentication.

@daniel-beck daniel-beck added the bugfix This PR fixes a bug. label Mar 6, 2024
@daniel-beck daniel-beck requested a review from dduportal March 6, 2024 18:09
@daniel-beck
Copy link
Contributor Author

java.io.IOException: You have exceeded a secondary rate limit. Please wait a few minutes before you try again. If you reach out to GitHub Support for help, please include the request ID 6ABC:95B52:44D74D6:84287D0:65EABBF9.

😒

daniel-beck added a commit to daniel-beck/update-center2 that referenced this pull request Mar 8, 2024
@daniel-beck
Copy link
Contributor Author

The above has been addressed through the use of GH App auth.

@daniel-beck daniel-beck merged commit b68f342 into jenkins-infra:master Mar 8, 2024
2 checks passed
@daniel-beck daniel-beck deleted the fix-github-auth branch March 8, 2024 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This PR fixes a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants