Open haxwell opened 6 years ago
I'd be glad to try to tackle this and submit a PR if no one is on it yet. Just say the word.
Actually, I think this could be handled by simply updating the version of the gdax
npm package we lock to. This appears to have been fixed in their repository already via this commit: 20d1292
I think there was an issue with updating, perhaps you could look into that if you are interested?
If only they'd release a new version to NPM instead of letting commits just sit on their master
branch for a month
System information
Describe the problem
At the moment, the GDAX API is down for maintainence. If you inspect the node gdax exchange module you can see that a message is returned saying as much. We should display that message.
Source code / logs
After running the backfill command, in the console we see
and then it hangs. We should catch the error that happens on the creation of the Orderbook object (currently line 23 in the websocketClient() method of gdax/exchange.js) and gracefully fail, displaying the message to the client.
To reproduce this, (since, once the API comes back up, this error won't occur), replace the Gdax.OrderbookSync() call with a module that throws an exception when created. It will be the same effect for the purposes of this issue.