Unexpected end of JSON input
with empty response
#1977
Labels
Unexpected end of JSON input
with empty response
#1977
Description
When a response has an empty body, the client fails with a
JSON.parse
error:This error happens here.
response[parseAs]()
fails to convert the empty response to json and crashes, never reaching the fallback.Expected result
The client should be able to handle empty responses without crashing with
JSON.parse
errors.Checklist
The text was updated successfully, but these errors were encountered: