-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SyntaxError at JSON.parse due to status=204 (no content) #123
Comments
I think this is expected. If you try to parse content with JSON, but the response body isn't valid JSON (such as an empty body) then the exception should be thrown. |
Yeah, but is it better than just getting "null"? |
Yes it's very much better. Because when you're expecting JSON, you won't be expecting |
Oh, I got it. |
Because of
and
The text was updated successfully, but these errors were encountered: