Skip to content
New issue

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

Empty error #21

Closed
tuloski opened this issue Feb 27, 2018 · 2 comments
Closed

Empty error #21

tuloski opened this issue Feb 27, 2018 · 2 comments

Comments

@tuloski
Copy link

tuloski commented Feb 27, 2018

Very often when there is an error, the promise returns an empty error, but never happened to me before.
Is it Bitstamp side or might it be in this:
if (response.statusCode < 200 || response.statusCode > 299) { return reject(new Error(body)); }
where body is empty and the error is in another field?

@adityamertia
Copy link
Contributor

I see a similar issue reported #18 I tried to replace return reject(new Error(body)); by return reject(body); it does return the error string. For me this happened after recent changes done to the library.

@krystianity
Copy link
Owner

@tuloski i have added the body state to these rejects in the new 2.1.0 version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants