Skip to content
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

Unexpected end of JSON input - Offline mode #66

Open
steven10172 opened this issue Sep 6, 2016 · 1 comment
Open

Unexpected end of JSON input - Offline mode #66

steven10172 opened this issue Sep 6, 2016 · 1 comment

Comments

@steven10172
Copy link

When setting json: true if the status code is 0 an error will be thrown due to there being no responseText.

@steven10172
Copy link
Author

After looking into this error I noticed that it might be better to throw an error similar to the CORS check when there is a response of XHR.UNSENT. If there was just a check around the JSON.parse there would be no error thrown for a bad request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant