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
// api
await instance.patch(`${API_PATH.user}/password`, body);
// error
SyntaxError: Unexpected end of JSON input
Describe the bug
When there is no response body, the error occurs because it is parsed as response.json(). ( responseType's default value is json)
I think we should implement the feature to parse based on content-type.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered:
Environment
fetch-ax 1.0.10 version
Reproduction
Describe the bug
When there is no response body, the error occurs because it is parsed as response.json(). ( responseType's default value is json)
I think we should implement the feature to parse based on content-type.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: