chrisleekr / binance-trading-bot

Automated Binance trading bot - Trade multiple cryptocurrencies. Buy low/sell high with Grid Trading. Integrated with TradingView technical analysis
MIT License
5.08k stars 1.1k forks source link

Bot stuck on loading #538

Closed Adasqu closed 1 year ago

Adasqu commented 2 years ago

Hi, After install I can't login to frontend and stuck on loading page. In ws I have: obraz On browser: {"command":"latest","authToken":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdXRoZW50aWNhdGVkQXQiOiIyMDIyLTExLTA3VDE3OjMxOjI4LjI1MVoiLCJpYXQiOjE2Njc4NDIyODgsImV4cCI6MTY2Nzg0OTQ4Ok0.OXr3Ke4OKk95zeUF3DDKcem2HaBH_ZFJiqS1D5QK6N4","data":{"page":1,"searchKeyword":"","sortBy":"default","sortByDesc":false}} On docker: {"name":"binance-api","version":"0.0.93","hostname":"dd1f1cef3a7c","pid":46,"gitHash":"26a1edc","server":"websocket","payload":{"command":"latest","authToken":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdXRoZW50aWNhdGVkQXQiOiIyMDIyLTExLTA3VDE5OjAyOjE4LjUwMVoiLCJpYXQiOjE2Njc4NDc3MzgsImV4cCI6MTY2Nzg1NDkzOH0.vENNQ_OEw9Q1Uw0n6EaR2VNA4k_pSqB9vY4kv3OFunc","data":{"page":1,"searchKeyword":"","sortBy":"default","sortByDesc":false},"isAuthenticated":true},"level":50,"err":{"message":"Unexpected token u in JSON at position 0","name":"SyntaxError","stack":"SyntaxError: Unexpected token u in JSON at position 0\n at JSON.parse ()\n at Object.handleLatest [as latest] (/srv/dist/server.js:1:119233)\n at runMicrotasks ()\n at processTicksAndRejections (internal/process/task_queues.js:95:5)\n at async WebSocket. (/srv/dist/server.js:1:114883)"},"msg":"Something wrong with trailing-trade-common cache","time":"2022-11-07T19:05:11.986Z","v":0}

gufei commented 2 years ago

same problem

redis key trailing-trade-common:account-info not exist,I don't know where it was set

topdollar3 commented 2 years ago

Same here, using binance testnet key and test mode in the bot env. Stuck on loading after entering the password

FernandoHiagon commented 2 years ago

same here with latest release

chrisleekr commented 2 years ago

Hi guys,

Sorry for the late reply.

Please refer Troubleshooting wiki page and get the error log.

https://github.com/chrisleekr/binance-trading-bot/wiki/Troubleshooting

Without an error log, I won't be able to find out what is happening.

And please make sure your key and BINANCE_MODE are correct.

ArcousSoftware commented 1 year ago

The same problem continues.

image

smalik003 commented 1 year ago

{"name":"binance-api","version":"0.0.94","hostname":"fc64d7b7c46a","pid":46,"gitHash":"29944c1","server":"websocket","payload":{"command":"latest","authToken":"","data":{"page":1,"searchKeyword":"","sortBy":"buy-difference","sortByDesc":false},"isAuthenticated":true},"level":50,"err":{"message":"Unexpected token u in JSON at position 0","name":"SyntaxError","stack":"SyntaxError: Unexpected token u in JSON at position 0\n at JSON.parse ()\n at Object.handleLatest [as latest] (/srv/dist/server.js:1:119454)\n at runMicrotasks ()\n at processTicksAndRejections (internal/process/task_queues.js:95:5)\n at async WebSocket. (/srv/dist/server.js:1:115058)"},"msg":"Something wrong with trailing-trade-common cache","time":"2022-11-30T10:19:32.158Z","v":0}

I got this issue after updating it to latest version, tried resetting all images/configuration still stuck on loading

chrisleekr commented 1 year ago

Guys,

I've added the error message. In my experience, most of your issues are caused by using the wrong API key/secret.

This fix will show the possible scenario of errors.

image

smalik003 commented 1 year ago
Screenshot 2022-11-30 145407

Issue still persists

RealAyyo commented 1 year ago

@chrisleekr json for account-info not parsing bad json in response https://github.com/chrisleekr/binance-trading-bot/blob/49271ef5993a2c9c579d54bff1d9d81780b99a2f/app/frontend/websocket/handlers/latest.js#L117