Username: Password:

Author Topic: Unhandled rejection Error: Bad server answer  (Read 6847 times)

Offline alku83

  • Rookie
  • *
  • Posts: 3
    • View Profile
Unhandled rejection Error: Bad server answer
« on: November 01, 2017, 09:35:33 AM »
Hi, I'm seeing this in my logs for a USDT-BTC pair on Bittrex.

Bad server answer [ { OrderUuid: '6dd9cc83-e442-4ec6-bf9c-64bfb71605f0',
Unhandled rejection Error: Bad server answer
    Exchange: 'USDT-BTC',
    at console.C:\snapshot\Users\Enrico\Desktop\xBot_v2.9.3\bittrex.js.module.exports.Market.getLastBuyRate.Promise.bittrex.private.getOrderHistory.then (evalmachine.<anonymous>:0:0)
    TimeStamp: '2017-10-29T09:10:11.463',
    at tryCatcher (C:\snapshot\Users\Enrico\Desktop\xBot_v2.9.3\node_modules\bluebird\js\release\util.js:16:23)
    OrderType: 'LIMIT_SELL',
    at Promise._settlePromiseFromHandler (C:\snapshot\Users\Enrico\Desktop\xBot_v2.9.3\node_modules\bluebird\js\release\promise.js:512:31)
    Limit: 5796.7,
    at Promise._settlePromise (C:\snapshot\Users\Enrico\Desktop\xBot_v2.9.3\node_modules\bluebird\js\release\promise.js:569:18)
    Quantity: 0.22336349,
    at Promise._settlePromise0 (C:\snapshot\Users\Enrico\Desktop\xBot_v2.9.3\node_modules\bluebird\js\release\promise.js:614:10)
    QuantityRemaining: 0,
    at Promise._settlePromises (C:\snapshot\Users\Enrico\Desktop\xBot_v2.9.3\node_modules\bluebird\js\release\promise.js:693:18)
    Commission: 3.23697278,
    at Async._drainQueue (C:\snapshot\Users\Enrico\Desktop\xBot_v2.9.3\node_modules\bluebird\js\release\async.js:133:16)
    Price: 1294.7891135,
    at Async._drainQueues (C:\snapshot\Users\Enrico\Desktop\xBot_v2.9.3\node_modules\bluebird\js\release\async.js:143:10)
    PricePerUnit: 5796.78045637,
    at Immediate.Async.drainQueues (C:\snapshot\Users\Enrico\Desktop\xBot_v2.9.3\node_modules\bluebird\js\release\async.js:17:14)
    IsConditional: false,
    at runCallback (timers.js:651:20)
    Condition: 'NONE',
    at tryOnImmediate (timers.js:624:5)
    ConditionTarget: null,
    at processImmediate [as _immediateCallback] (timers.js:596:5)
    ImmediateOrCancel: false,
    Closed: '2017-10-29T09:10:11.637' } ]


My last trade on Bittrex was actually to convert 0.22336349 of BTC to USDT, so those numbers look familiar to me. But looking it Bittrex it seems the order went through fine and there is nothing pending.

Any ideas?
Thanks!

Offline alku83

  • Rookie
  • *
  • Posts: 3
    • View Profile
Re: Unhandled rejection Error: Bad server answer
« Reply #1 on: November 01, 2017, 05:59:39 PM »
Oh, using v3.3.2 by the way.

Offline spork

  • Rookie
  • *
  • Posts: 1
    • View Profile
Re: Unhandled rejection Error: Bad server answer
« Reply #2 on: November 01, 2017, 11:59:35 PM »
What a coincidence! I just started on USDT pairs with 3.3.2 in the last couple days and I was also seeing this error. The fix as suggested by Dante on Telegram was to buy/sell a small amount of the pair with the error. I did this with the 3 I was having problems with and the error has gone away. Just did a quick $5 flip at market prices on each and only lost a few cents. The pairs that had problems had only one trade, a sell, which looks to be the same as your case. Hope that helps!

Offline alku83

  • Rookie
  • *
  • Posts: 3
    • View Profile
Re: Unhandled rejection Error: Bad server answer
« Reply #3 on: November 02, 2017, 05:56:25 AM »
That did it, thanks so much!