updateCheckRun call fails since 1.128
See original GitHub issueAs originally raised in #1156, calls to update check runs that worked in 1.122 now fail once the enum mapping issue is worked around.
The following code
GitHub github = new GitHubBuilder()
.withOAuthToken("value supplied by github actions")
.withEndpoint("value supplied by github actions")
.build();
GHCheckRun checkRun = repo.createCheckRun("whatever", "value supplied by github actions").withStatus(GHCheckRun.Status.IN_PROGRESS).create();
repo.updateCheckRun(checkRun.getId())
.add(output)
.withConclusion(GHCheckRun.Conclusion.SUCCESS)
.withStatus(GHCheckRun.Status.COMPLETED)
.create();
Runs without issue in 1.122 to 1.127, but fails during the updateCheckRun call from 1.128 onwards with
Caused by: org.kohsuke.github.GHFileNotFoundException: https://api.github.com/repos/XXX/XXX/check-runs/2676567691 {"message":"Not Found","documentation_url":"https://docs.github.com/rest"}
at org.kohsuke.github.GitHubClient.interpretApiError (GitHubClient.java:482)
at org.kohsuke.github.GitHubClient.sendRequest (GitHubClient.java:409)
at org.kohsuke.github.GitHubClient.sendRequest (GitHubClient.java:357)
at org.kohsuke.github.Requester.fetch (Requester.java:76)
at org.kohsuke.github.GHCheckRunBuilder.create (GHCheckRunBuilder.java:153)
@gsmet has indicated that this represents an authentication failure, however it seems strange that the call to create the checkrun succeeds, while the call to update it fails using the same credentials.
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (7 by maintainers)
Top Results From Across the Web
github-api - Bountysource
Since 26/05 previously working calls to createCheckRun fail with the following error when trying to parse the github response
Read more >Index (GitHub API for Java 1.128 API) - Javadoc.io
Decides whether the current request exceeds the allowed "rate limit" budget. ... FAIL - Static variable in class org.kohsuke.github.AbuseLimitHandler.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@hcoles Okhttp also support caching which is generally huge improvement for rate limit usage.
I provide the token directly.
Thanks for the link, I’ve been wanting an excuse to play with quarkus.