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

http getJSON never completes when response is not JSON #651

Closed
cime opened this issue Sep 1, 2015 · 1 comment
Closed

http getJSON never completes when response is not JSON #651

cime opened this issue Sep 1, 2015 · 1 comment
Milestone

Comments

@cime
Copy link

cime commented Sep 1, 2015

When using http.getJSON and the response is not JSON, but for example a 404 error with html content the promise is never resolved/rejected. The workaround is to user getString and manually parse JSON with JSON.parse(...)

TNS: 1.2.4
tns-android: 1.2.1

@enchev enchev self-assigned this Sep 2, 2015
@enchev enchev added this to the 1.3.0 milestone Sep 2, 2015
@enchev enchev added the done label Sep 7, 2015
@enchev enchev closed this as completed Sep 7, 2015
@enchev enchev added the bug label Sep 16, 2015
@lock
Copy link

lock bot commented Aug 31, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot unassigned enchev Aug 31, 2019
@lock lock bot locked and limited conversation to collaborators Aug 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants