Krypto-trading-bot: bot is disconnected (hitbtc SyntaxError: Unexpected token u in JSON at position 0)

Created on 18 Jul 2017  Â·  5Comments  Â·  Source: ctubio/Krypto-trading-bot

Hello,
I have try to install the bot and run it on hitbtc exchange but on the web ui i see bot is disconnected !
When i start nodejs K.js i have this error:

03:41:13.556 main Unhandled exception! SyntaxError: Unexpected token u in JSON at position 0
    at JSON.parse (<anonymous>)
    at WebSocketClient.HitBtcMarketDataGateway.onMessage [as internalOnMessage] (/home/yepla/Krypto-trading-bot/app/server/gateways/hitbtc.js:105:28)
    at native.client.group.onMessage (/home/yepla/Krypto-trading-bot/node_modules/uws/uws.js:57:15)
03:41:13.559 main Attempting to cancel all open orders, please wait..
hitbtc SyntaxError: Unexpected token u in JSON at position 0
    at JSON.parse (<anonymous>)
    at WebSocketClient.HitBtcMarketDataGateway.onMessage [as internalOnMessage] (/home/yepla/Krypto-trading-bot/app/server/gateways/hitbtc.js:105:28)
    at native.client.group.onMessage (/home/yepla/Krypto-trading-bot/node_modules/uws/uws.js:57:15) Error parsing msg {"MarketDataIncrementalRefresh":{"seqNo":3005289,"symbol":"FCNBTC","exchangeStatus":"working","ask":[{"price":"0.000033","size":263014},{"price":"0.000034","size":475717}],"bid":[{"price":"0.000030","size":8187},{"price":"0.000029","size":5271}],"trade":[],"timestamp":1500349273314}}

for each market.
Note that for gdax the web ui work good !
Thanks for your help.

nobody cares bug

All 5 comments

i believe nobody cares about hitbtc cos nobody made any donation in order to support the development of hitbtc

Carles, my donation for hitbtc still stands.

Get Outlook for iOShttps://aka.ms/o0ukef


From: Carles Tubio notifications@github.com
Sent: Tuesday, July 18, 2017 12:17:04 PM
To: ctubio/Krypto-trading-bot
Cc: Subscribed
Subject: Re: [ctubio/Krypto-trading-bot] bot is disconnected (hitbtc SyntaxError: Unexpected token u in JSON at position 0) (#75)

Closed #75https://github.com/ctubio/Krypto-trading-bot/issues/75.

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/ctubio/Krypto-trading-bot/issues/75#event-1168138125, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AcJmj6AoKPNNbIxnbOEUCE5GOGdPYEp2ks5sPJQvgaJpZM4Oaz1i.

i need to open an account in hitbtc, hope for it after the fix of the TBP missing on boot

jgxtn

Hey Carles, many thanks for taking a look at this. Seems it's hit one last bug, I've raised a separate issue. I'm just leaving work will tip you tonight or tomorrow morning!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Camille92 picture Camille92  Â·  6Comments

juaxix picture juaxix  Â·  4Comments

MiningInMySleep picture MiningInMySleep  Â·  4Comments

adirta picture adirta  Â·  4Comments

halessi picture halessi  Â·  8Comments