Username: Password:

Author Topic: TypeError: Cannot read property 'split' of undefined  (Read 127 times)

Offline batemanap

  • Rookie
  • *
  • Posts: 2
    • View Profile
TypeError: Cannot read property 'split' of undefined
« on: September 10, 2020, 11:42:59 AM »
I keep getting this error on my Gunbot install, I had to delete all my json files before and start again, this time it happened after I saved a trading config change through the GUI.

Using latest v18.8.8 from GitHub on a AWS linux box

Makes it unusable as just goes into a crash loop


0|gunthy-linux  | TypeError: Cannot read property 'split' of undefined
0|gunthy-linux  |     at module.exports.parseOpenOrders._.forEach.o (/snapshot/v18build/ctx/js/poloniex.js:0:0)
0|gunthy-linux  |     at arrayEach (/snapshot/v18build/node_modules/lodash/lodash.js:516:11)
0|gunthy-linux  |     at Function.forEach (/snapshot/v18build/node_modules/lodash/lodash.js:9342:14)
0|gunthy-linux  |     at Poloniex.parseOpenOrders (/snapshot/v18build/ctx/js/poloniex.js:0:0)
0|gunthy-linux  |     at Object.module.exports.fetchOpenOrders.poloniex.returnOpenOrders [as callback] (/snapshot/v18build/ctx/js/poloniex.js:0:0)
0|gunthy-linux  |     at isProcessing (/snapshot/v18build/node_modules/async/dist/async.js:2271:31)
0|gunthy-linux  |     at /snapshot/v18build/node_modules/async/dist/async.js:969:16
0|gunthy-linux  |     at Request._callback (/snapshot/v18build/ctx/helper/joaquin-plnx/lib/index.js:136:7)
0|gunthy-linux  |     at Request.init.self.callback (/snapshot/v18build/node_modules/request/request.js:185:22)
0|gunthy-linux  |     at Request.emit (events.js:159:13)
0|gunthy-linux  |     at Request.<anonymous> (/snapshot/v18build/node_modules/request/request.js:1161:10)
0|gunthy-linux  |     at Request.emit (events.js:159:13)
0|gunthy-linux  |     at IncomingMessage.<anonymous> (/snapshot/v18build/node_modules/request/request.js:1083:12)
0|gunthy-linux  |     at Object.onceWrapper (events.js:254:19)
0|gunthy-linux  |     at IncomingMessage.emit (events.js:164:20)
0|gunthy-linux  |     at endReadableNT (_stream_readable.js:1054:12)
0|gunthy-linux  |     at _combinedTickCallback (internal/process/next_tick.js:138:11)
0|gunthy-linux  |     at process._tickCallback (internal/process/next_tick.js:180:9) 'Uncaught Exception thrown'

Offline Aitor

  • Administrator
  • *****
  • Posts: 390
  • Telegram: @AitorRuiz Gunbot.shop
    • View Profile
    • Gunbot
Re: TypeError: Cannot read property 'split' of undefined
« Reply #1 on: September 15, 2020, 12:13:49 AM »
I keep getting this error on my Gunbot install, I had to delete all my json files before and start again, this time it happened after I saved a trading config change through the GUI.

Using latest v18.8.8 from GitHub on a AWS linux box

Makes it unusable as just goes into a crash loop


0|gunthy-linux  | TypeError: Cannot read property 'split' of undefined
0|gunthy-linux  |     at module.exports.parseOpenOrders._.forEach.o (/snapshot/v18build/ctx/js/poloniex.js:0:0)
0|gunthy-linux  |     at arrayEach (/snapshot/v18build/node_modules/lodash/lodash.js:516:11)
0|gunthy-linux  |     at Function.forEach (/snapshot/v18build/node_modules/lodash/lodash.js:9342:14)
0|gunthy-linux  |     at Poloniex.parseOpenOrders (/snapshot/v18build/ctx/js/poloniex.js:0:0)
0|gunthy-linux  |     at Object.module.exports.fetchOpenOrders.poloniex.returnOpenOrders [as callback] (/snapshot/v18build/ctx/js/poloniex.js:0:0)
0|gunthy-linux  |     at isProcessing (/snapshot/v18build/node_modules/async/dist/async.js:2271:31)
0|gunthy-linux  |     at /snapshot/v18build/node_modules/async/dist/async.js:969:16
0|gunthy-linux  |     at Request._callback (/snapshot/v18build/ctx/helper/joaquin-plnx/lib/index.js:136:7)
0|gunthy-linux  |     at Request.init.self.callback (/snapshot/v18build/node_modules/request/request.js:185:22)
0|gunthy-linux  |     at Request.emit (events.js:159:13)
0|gunthy-linux  |     at Request.<anonymous> (/snapshot/v18build/node_modules/request/request.js:1161:10)
0|gunthy-linux  |     at Request.emit (events.js:159:13)
0|gunthy-linux  |     at IncomingMessage.<anonymous> (/snapshot/v18build/node_modules/request/request.js:1083:12)
0|gunthy-linux  |     at Object.onceWrapper (events.js:254:19)
0|gunthy-linux  |     at IncomingMessage.emit (events.js:164:20)
0|gunthy-linux  |     at endReadableNT (_stream_readable.js:1054:12)
0|gunthy-linux  |     at _combinedTickCallback (internal/process/next_tick.js:138:11)
0|gunthy-linux  |     at process._tickCallback (internal/process/next_tick.js:180:9) 'Uncaught Exception thrown'

Try this:

Stop the bot. Copy the files in the Json folder save them somewhere. Then delete al the files in the json folder.