forwardemail / forwardemail/superagent

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

Open
#675 10 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
16.6k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.