-
Notifications
You must be signed in to change notification settings - Fork 154
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
Using "to", still getting "Unhandled promise rejection", why? #19
Comments
Never mind, I uninstalled your module and just did like this:
And it works... I tried also to change variable names and use |
@firepol I will try to replicate the issue using 'ccxt' in the next couple of days. Thanks for reporting! |
@firepol the reason you're getting let to = require('await-to-js').default @scopsy perhaps it is worth adding the module export for people who want to use this with |
Same error here, using NodeJS 12 with flags.
|
Hi, I tried your repo in my little crypto project
I use ccxt:
When I call my withdraw function and I try to withdraw 5 ripple (and I know it should generate an error), I still get:
(node:18252) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: to is not a function
(node:18252) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:18252) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3): Error: bitstamp {"status":"error","reason":{"amount":["Ensure this value is greater than or equal to 20."]}}
Ideally I'd like to return either the response or the error.
Ideas why this doesn't work? Looking at your documentation I was expecting this repo to handle the errors. Thanks for any help.
The text was updated successfully, but these errors were encountered: