Uh oh!
There was an error while loading. Please reload this page.
fix: gracefully handle invalid json response - #8104
Conversation
The following comment was made by an LLM, it may be inaccurate: Found potential duplicate PRs: Related PRs (addressing similar/same issue):
Why they're related: PR #8104 fixes JSON parsing errors on empty responses from aborted requests. PRs #8027 and #7888 appear to address the exact same issue (empty JSON responses), while #7959 and #7939 address related abort scenarios that can produce invalid responses. |
mrlubos
commented
Jan 13, 2026
@pschiel this will be fixed upstream hey-api/hey-api#3202 |
dhruvkej9
commented
Jan 13, 2026
When ?? I can't use opencode due to this |
mrlubos
commented
Jan 17, 2026
NOW!! |
Fixes#7889
Cause:
Aborting requests (e.g., pressing ESC during streaming responses) can result in an empty response body.
The SDK client's JSON parser fails on empty strings with "Unexpected end of JSON input" because there was no error handling.
Fix: add error handling.