You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Addressing #258 will resolve misleading error scenarios where the error message that shows up in the Actions logs says something like HttpError: invalid json response body and reason: Unexpected end of JSON input. This occurs when Octokit receives a response with an error code (e.g. 400) but the accompanying response text is either not JSON-compatible for parsing, or is just not provided at all (empty).
This was resolved in Octokit with the following PR:
However, the subsequent Octokit release is not compatible with Node 16.x, and therefore cannot be pulled in as a dependency until we merge #256 and cut a new 3.x release.
Sadly, a new 3.x release won't help all of our GHES customers.
Therefore, we should consider implementing a rough workaround fix (i.e. a catch watching for this exact error) in this scenario so we log fewer "red herring" error messages. 🐟
The text was updated successfully, but these errors were encountered:
This is intended as the
1.x
and2.x
equivalent to shipping:@octokit/request.js
tov8.1.5
after updating to run onnode20
#258Addressing #258 will resolve misleading error scenarios where the error message that shows up in the Actions logs says something like
HttpError: invalid json response body
andreason: Unexpected end of JSON input
. This occurs when Octokit receives a response with an error code (e.g.400
) but the accompanying response text is either not JSON-compatible for parsing, or is just not provided at all (empty).This was resolved in Octokit with the following PR:
Unexpected end of JSON input
when response body is empty octokit/request.js#648However, the subsequent Octokit release is not compatible with Node 16.x, and therefore cannot be pulled in as a dependency until we merge #256 and cut a new
3.x
release.Sadly, a new
3.x
release won't help all of our GHES customers.Therefore, we should consider implementing a rough workaround fix (i.e. a
catch
watching for this exact error) in this scenario so we log fewer "red herring" error messages. 🐟The text was updated successfully, but these errors were encountered: