Skip to content

http getJSON never completes when response is not JSON #651

@cime

Description

@cime

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

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