Skip to content

Wrong Response.text() behavior #352

@chiefmc

Description

@chiefmc

Trying to get a simple string from a REST-API using the Angular's Http.get(), but having an unexpected trouble while trying to get the Response's body, using Response.text():
Expected response:

16288083cbfe40da68c4674b704c675f

Actual response:

<66363332 37303033 62306262 38646366 61356236 62353230 37616535 35613762>

I assume the problem is that the response from the server is not a JSON, nor HTML, but a plain text string and looks like it is stored internally using NSData, and there might be something wrong during string extraction from NSData.

versions:
Angular 2.0.0-rc.4
TNS-core: 2.1.1
NativeScript-Angular 0.2.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions