-
Notifications
You must be signed in to change notification settings - Fork 385
Closed
Description
When a Response is 204 and response.json() is called an unexpected end of input error is thrown.
As the response is already stating that there is no JSON trying to parse it feels wrong. Would it make more sense in this case to either:
a) resolve with an empty value
b) throw a more informative error e.g. Cannot parse a response with no content as json
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels