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

Handle errors triggered by secondary rate limit #55

Open
bbaga opened this issue Dec 11, 2021 · 0 comments
Open

Handle errors triggered by secondary rate limit #55

bbaga opened this issue Dec 11, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@bbaga
Copy link
Owner

bbaga commented Dec 11, 2021

org.kohsuke.github.GHException: Failed to retrieve https://api.github.com/search/issues?q=...
	at org.kohsuke.github.GitHubPageIterator.fetch(GitHubPageIterator.java:153)
	at org.kohsuke.github.GitHubPageIterator.hasNext(GitHubPageIterator.java:89)
	at org.kohsuke.github.PagedSearchIterable$1.hasNext(PagedSearchIterable.java:86)
	at org.kohsuke.github.PagedIterator.fetch(PagedIterator.java:106)
	at org.kohsuke.github.PagedIterator.hasNext(PagedIterator.java:74)
	at java.base/java.lang.Iterable.forEach(Iterable.java:74)
	at com.bbaga.githubscheduledreminderapp.domain.sources.github.SearchByReviewersPRsSource.findIssues(SearchByReviewersPRsSource.java:45)
	at com.bbaga.githubscheduledreminderapp.domain.sources.github.SearchByReviewersPRsSource.get(SearchByReviewersPRsSource.java:28)
	at com.bbaga.githubscheduledreminderapp.domain.notifications.slack.ChannelNotificationDataProvider.getData(ChannelNotificationDataProvider.java:70)
	at com.bbaga.githubscheduledreminderapp.domain.notifications.slack.NotificationStrategy.sendNotification(NotificationStrategy.java:28)
	at com.bbaga.githubscheduledreminderapp.application.jobs.ScheduledNotification.execute(ScheduledNotification.java:49)
	at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
Caused by: org.kohsuke.github.HttpException: {
  "documentation_url": "https://docs.github.com/en/free-pro-team@latest/rest/overview/resources-in-the-rest-api#secondary-rate-limits",
  "message": "You have exceeded a secondary rate limit. Please wait a few minutes before you try again."
}

	at org.kohsuke.github.GitHubConnectorResponseErrorHandler$1.onError(GitHubConnectorResponseErrorHandler.java:56)
	at org.kohsuke.github.GitHubClient.detectKnownErrors(GitHubClient.java:424)
	at org.kohsuke.github.GitHubClient.sendRequest(GitHubClient.java:386)
	at org.kohsuke.github.GitHubPageIterator.fetch(GitHubPageIterator.java:142)
	... 12 more
@bbaga bbaga added the bug Something isn't working label Dec 11, 2021
@bbaga bbaga self-assigned this Dec 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant