-
Notifications
You must be signed in to change notification settings - Fork 46
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
UnhandledPromiseRejectionWarning: Unhandled promise rejection #35
Comments
Same here, but it happened once, now when I try to connect again I got this: /Users/inc/Desktop/Foxbit/node_modules/blinktrade/lib/wsTransport.js:163 Error: Error: Invalid message Invalid message |
@helxsz We were under maintenance this week, it was expected since our servers were off. @hadnet Does it still happen? i can't reproduce it with this code const { BlinkTradeWS } = require('blinktrade')
const blinktrade = new BlinkTradeWS({
brokerId: 4,
prod: true,
})
blinktrade.connect().then(() => {
console.log('connected')
}) |
@cesardeazevedo it does. But it happens when I try to send a buy/sell order. |
@hadnet i gotcha, i've fixed and release at 0.0.20. Let me know if you guys have any other issue. |
@cesardeazevedo same as the error above, just this line changed: BlinkTradeWS.onMessage (/Users/inc/Desktop/Foxbit/node_modules/blinktrade/lib/wsTransport.js:164:15) [in error above was 163:15]. It seems something with cancel or update. |
@hadnet I can't help you without a minimum information and way that i could reproduce it, what exactly you are trying to do? which part the exception occur? which function are you calling? can you post a small code that i could take a look? |
@cesardeazevedo Now it's suddenly working ok. Thanks anyway. |
My node is v8.9.4 and npm 5.6.0, and I am using the latest version of BlinkTrade, when I was running the code, i got the error as shown below.
The text was updated successfully, but these errors were encountered: