Skip to content

Fails to parse JSON, doesn't give us the raw response. #675

Open
@ponelat

Description

@ponelat

For particular reasons, the response from the server is a malformed JSON string, ie: it will fail to parse.
However we'd still like to show the raw body content but can't because superagent doesn't include that data.

Can we have the err callback included the raw response.

Round about here I think...
https://github.com/visionmedia/superagent/blob/master/lib/client.js#L466-L473

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