0
I am using blinktrade’s Ode documentation to receive deposit notifications on Bitcoins, but the Polling process is being terminated by itself thus disrupting the functioning of my system, how can I resolve this ?
const BlinkTradeWS = require('blinktrade').BlinkTradeWS;
const blinktrade = new BlinkTradeWS({
brokerId: 11,
});
blinktrade.connect().then(() => {
return blinktrade.login({
username: "<>",
password: "<>",
});
}).then((profile) => {
blinktrade.onDepositRefresh(function(deposit) {
console.log(deposit);
});
});
Without some code it is almost impossible to specify the reason for the difficulty.
– Sorack
I have never used blinktrade so I won’t formulate an answer. But this error occurs because one of the functions is asynchronous and is bundled with
Promisse
and this function can issue an error, in case of time-out, that has not been dealt with in your code. Put acatch()
or in the connection block or login block.– Augusto Vasques