-
Notifications
You must be signed in to change notification settings - Fork 360
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
agupta1989, ammoradi, jrc, AMS777, poul1x and 2 more
Metadata
Metadata
Assignees
Labels
No labels