We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
6.0.1
Errors throw/contain actual reason for request failure
Error complains about invalid json (even though content type is text/html): Unexpected end of JSON input at https://github.com/sendwithus/sendwithus_nodejs/blob/master/lib/sendwithus.js#L69
Unexpected end of JSON input
To demonstrate with a 403 just require('sendwithus')().send({}, (err) => console.log(err)) in a node console and it'll fail with this obscure error
require('sendwithus')().send({}, (err) => console.log(err))
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Client version
6.0.1
Expected behaviour
Errors throw/contain actual reason for request failure
Actual behaviour
Error complains about invalid json (even though content type is text/html):
Unexpected end of JSON input
at https://github.com/sendwithus/sendwithus_nodejs/blob/master/lib/sendwithus.js#L69Steps to reproduce
To demonstrate with a 403 just
require('sendwithus')().send({}, (err) => console.log(err))
in a node console and it'll fail with this obscure errorThe text was updated successfully, but these errors were encountered: