Closed ansonphong closed 6 years ago
is there any update about this error?
It's possible that the Binance module changed something about their error handling again, I'll check it out over the weekend.
If that is the case, running npm install binance@1.0.2
should work around the issue for now.
Ok actually this was simpler than that, a missing null check. I'll push a fix shortly.
Thanks @cmroche, yes that's how I ended up fixing it locally.
Note: for support questions, please join our Discord server
I'm submitting a ... [X] bug report [ ] feature request [ ] question about the decisions made in the repository
Action taken (what you did) Occurred while running a live trader on Binance.
Expected result (what you hoped would happen)
Actual result (unexpected outcome)
After running smooth for about an hour, this error happened and Node crashed:
I think this could be due to the Binance API call giving an undefined response, we might want to first check that the
body
is defined before processing it.