Open
Description
When you specify an :accept :json
header, lambdaisland/fetch
will attempt to automatically decode the response body using response.json()
. However this will fail and raise an error if the response body is empty (ie JSON.parse('')
).
fetch/src/lambdaisland/fetch.cljs
Lines 66 to 67 in 246d561
The code should probably check if the body is empty first.
Metadata
Metadata
Assignees
Labels
No labels