You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// We override the `.json()` method to parse the body more securely with `destr`if(responseType==="json"){constdata=awaitcontext.response.text();constparseFunction=context.options.parseResponse||destr;context.response._data=parseFunction(data);}elseif(responseType==="stream"){context.response._data=context.response.body;}else{context.response._data=awaitcontext.response[responseType]();}
Before this, it has to check if the status code is 204 to skip parsing.
It will also throw the same error on any response without a body.
The text was updated successfully, but these errors were encountered:
An endpoint that returns a HTTP 204 response without body.
The culprit is this line of code:
Before this, it has to check if the status code is 204 to skip parsing.
It will also throw the same error on any response without a body.
The text was updated successfully, but these errors were encountered: