Process in Ode being terminated alone

Asked

Viewed 66 times

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 ? Erro code-0

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);
      });

});
  • 1

    Without some code it is almost impossible to specify the reason for the difficulty.

  • 2

    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 a catch() or in the connection block or login block.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.