Community
Participate
Working Groups
I wasn't doing anything crazy, just refreshed couple of Github queries (issues first then my gists iirc). org.eclipse.mylyn.internal.github.core.GitHubException: API Rate Limit Exceeded for <ip> at org.eclipse.mylyn.internal.github.core.GitHubException.wrap(GitHubException.java:38) at org.eclipse.mylyn.internal.github.core.GitHub.createWrappedStatus(GitHub.java:147) at org.eclipse.mylyn.internal.github.core.gist.GistConnector.performQuery(GistConnector.java:164) at org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeQueriesJob.synchronizeQuery(SynchronizeQueriesJob.java:311) at org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeQueriesJob.synchronizeQueries(SynchronizeQueriesJob.java:268) at org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeQueriesJob.run(SynchronizeQueriesJob.java:201) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53) Caused by: org.eclipse.egit.github.core.client.RequestException: API Rate Limit Exceeded for 87.206.53.174 (403) at org.eclipse.egit.github.core.client.GitHubClient.createException(GitHubClient.java:514) at org.eclipse.egit.github.core.client.GitHubClient.get(GitHubClient.java:702) at org.eclipse.egit.github.core.client.PageIterator.next(PageIterator.java:173) at org.eclipse.egit.github.core.service.GitHubService.getAll(GitHubService.java:151) at org.eclipse.egit.github.core.service.GistService.getGists(GistService.java:173) at org.eclipse.mylyn.internal.github.core.gist.GistConnector.performQuery(GistConnector.java:156) ... 4 more
I don't believe this is only a mylyn issue. This is a gihub connector issue. The Github connector captures but does nothing with the rate limit that Github enforces. The offending file is on github: https://github.com/eclipse/egit-github/blob/master/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/client/GitHubClient.java#L763 The github connector should handle the case where the 'remainingRequests' == 0, and sleep until it can request again (not ideal), or some other clever solution.
At the very least, there should be a "RateLimitService" to let the user manually look into it: https://docs.github.com/en/rest/reference/rate-limit