FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

http getJSON never completes when response is not JSON · Issue #651 · NativeScript/NativeScript · GitHub

http getJSON never completes when response is not JSON #651

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL