404 error while updating a check-run #21590
-
Hi, I try to do something similar to what is provided by the node action from yuzutech : annotations-action but with others technologies such as kotlin scripts. All the requests are performed by using the java fuel library and they all use the GITHUB_TOKEN provided on a workflow run. To create a new check-run, the following code works fine :
after this step, the check-run is created and I would like to update it.
the equivalent curl command is : curl -i -X PATCH -d “{“conclusion”:“success”,“status”:“completed”}” -H “Accept:application/vnd.github.v3+json” -H “Content-Type:application/json” -H “Authorization:Basic ***” https://{our github server}/api/v3/repos/Studio/initializr/check-runs/7682. The id 7682 is the id of the newly created check-run. The response for this request is a 404 : Before the update, a get request is able to return the newly created check-run :
The patch request seems to be okay regarding the API spec : Checks - GitHub Docs. I cannot see what’s wrong with this request and I definitively needs some help :slight_smile: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The issue in on Fuel’s side : it seems that instead of performing a patch request, it does a post request with X-HTTP-Method-Override: PATCH header => PATCH method transformed to POST method · Issue #274 · kittinunf/fuel · GitHub. |
Beta Was this translation helpful? Give feedback.
The issue in on Fuel’s side : it seems that instead of performing a patch request, it does a post request with X-HTTP-Method-Override: PATCH header => PATCH method transformed to POST method · Issue #274 · kittinunf/fuel · GitHub.