Username: Password:

Author Topic: Cannot read property 'Available' of undefined  (Read 22145 times)

Offline jimbogbt

  • Rookie
  • *
  • Posts: 16
    • View Profile
Cannot read property 'Available' of undefined
« on: February 06, 2018, 08:23:58 AM »
Any thoughts?

Running the Xmas build on Bittrex.
The Bittrex website is playing up a little and not loading pages so possibly an issue their end?
Was working fine last night.

C:\snapshot\Gunbot-master\node_modules\lodash\lodash.js:537
      if (iteratee(array[index], index, array) === false) {
          ^

TypeError: Cannot read property 'Available' of undefined
    at module.exports.parseBalance._.forEach (C:\snapshot\Gunbot-master\ctx\js\bittrex.js:0:0)
    at arrayEach (C:\snapshot\Gunbot-master\node_modules\lodash\lodash.js:537:11)
    at Function.forEach (C:\snapshot\Gunbot-master\node_modules\lodash\lodash.js:9359:14)
    at Bittrex.parseBalance (C:\snapshot\Gunbot-master\ctx\js\bittrex.js:0:0)
    at C:\snapshot\Gunbot-master\ctx\js\bittrex.js:0:0
    at Request._callback (C:\snapshot\Gunbot-master\node_modules\node-bittrex-api\node.bittrex.api.js:144:11)
    at Request.init.self.callback (C:\snapshot\Gunbot-master\node_modules\request\request.js:188:22)
    at emitTwo (events.js:125:13)
    at Request.emit (events.js:213:7)
    at Request. (C:\snapshot\Gunbot-master\node_modules\request\request.js:1171:10)
    at emitOne (events.js:115:13)
    at Request.emit (events.js:210:7)
    at IncomingMessage. (C:\snapshot\Gunbot-master\node_modules\request\request.js:1091:12)
    at Object.onceWrapper (events.js:312:19)
    at emitNone (events.js:110:20)
    at IncomingMessage.emit (events.js:207:7)
    at endReadableNT (_stream_readable.js:1045:12)
    at _combinedTickCallback (internal/process/next_tick.js:102:11)
    at process._tickCallback (internal/process/next_tick.js:161:9)
C:\snapshot\Gunbot-master\node_modules\lodash\lodash.js:537
      if (iteratee(array[index], index, array) === false) {
          ^

Offline sloaleks

  • Contributor
  • **
  • Posts: 610
    • View Profile
Re: Cannot read property 'Available' of undefined
« Reply #1 on: February 06, 2018, 01:18:19 PM »
What are you talking about? Bittrex is working just fine.

Offline aknetman

  • Rookie
  • *
  • Posts: 5
    • View Profile
Re: Cannot read property 'Available' of undefined
« Reply #2 on: February 07, 2018, 04:41:57 PM »
I was getting the same error on the Xmas build (7.0.2) and just upgraded to v8.0.3 thinking that would stop the error, but I am still getting the identical error.
I am trading on bittrex, running on a linux box.

here is copy-paste from my error log-
Code: [Select]
TypeError: Cannot read property 'Available' of undefined
    at module.exports.parseBalance._.forEach (/snapshot/Gunbot-master/ctx/js/bittrex.js:0:0)
    at arrayEach (/snapshot/Gunbot-master/node_modules/lodash/lodash.js:537:11)
    at Function.forEach (/snapshot/Gunbot-master/node_modules/lodash/lodash.js:9359:14)
    at Bittrex.parseBalance (/snapshot/Gunbot-master/ctx/js/bittrex.js:0:0)
    at /snapshot/Gunbot-master/ctx/js/bittrex.js:0:0
    at Request._callback (/snapshot/Gunbot-master/node_modules/node-bittrex-api/node.bittrex.api.js:144:11)
    at Request.init.self.callback (/snapshot/Gunbot-master/node_modules/request/request.js:186:22)
    at emitTwo (events.js:126:13)
    at Request.emit (events.js:214:7)
    at Request. (/snapshot/Gunbot-master/node_modules/request/request.js:1163:10)
    at emitOne (events.js:116:13)
    at Request.emit (events.js:211:7)
    at IncomingMessage. (/snapshot/Gunbot-master/node_modules/request/request.js:1085:12)
    at Object.onceWrapper (events.js:313:30)
    at emitNone (events.js:111:20)
    at IncomingMessage.emit (events.js:208:7)
    at endReadableNT (_stream_readable.js:1056:12)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)
/snapshot/Gunbot-master/node_modules/lodash/lodash.js:537
      if (iteratee(array[index], index, array) === false) {
          ^

Offline sarog

  • Rookie
  • *
  • Posts: 4
    • View Profile
Re: Cannot read property 'Available' of undefined
« Reply #3 on: February 09, 2018, 12:59:20 PM »
Just stop the bot.
Remove all json files

Code: [Select]
rm *.json
And start the bot again.

Offline jbpeanut82

  • Rookie
  • *
  • Posts: 6
    • View Profile
Re: Cannot read property 'Available' of undefined
« Reply #4 on: February 09, 2018, 04:39:53 PM »
I'm having the same issue on 8.0.3 fresh install, watchmode, 1 pair, emotionless.  As basic as it can get.  Any ideas?

Offline jbpeanut82

  • Rookie
  • *
  • Posts: 6
    • View Profile
Re: Cannot read property 'Available' of undefined
« Reply #5 on: February 09, 2018, 08:04:40 PM »
Did some more digging and it seems like this issue was supposed to be resolved in 8.0.3 according to this:

https://github.com/GuntharDeNiro/BTCT/wiki/New-in-803

"Fix bittrex "available of undefined""

Several have reported the issue since 7.x. 

https://github.com/GuntharDeNiro/BTCT/issues/335

Should I downgrade?

Thanks.

Offline bobzilla

  • Rookie
  • *
  • Posts: 11
    • View Profile
Re: Cannot read property 'Available' of undefined
« Reply #6 on: February 10, 2018, 08:17:48 PM »
Did some more digging and it seems like this issue was supposed to be resolved in 8.0.3 according to this:

https://github.com/GuntharDeNiro/BTCT/wiki/New-in-803

"Fix bittrex "available of undefined""

Several have reported the issue since 7.x. 

https://github.com/GuntharDeNiro/BTCT/issues/335

Should I downgrade?

Thanks.



I'm getting the same error on Xmas edition also.  Have you had any luck getting it to work?  I can run my bot for about 30 mins and then i start to get the errors. 



Offline jbpeanut82

  • Rookie
  • *
  • Posts: 6
    • View Profile
Re: Cannot read property 'Available' of undefined
« Reply #7 on: February 10, 2018, 08:39:37 PM »
I have not, it just crashes constantly.    :(  :'(

Offline bobzilla

  • Rookie
  • *
  • Posts: 11
    • View Profile
Re: Cannot read property 'Available' of undefined
« Reply #8 on: February 10, 2018, 09:41:50 PM »
Have you tried closing out the program and restarting?

Offline jbpeanut82

  • Rookie
  • *
  • Posts: 6
    • View Profile
Re: Cannot read property 'Available' of undefined
« Reply #9 on: February 11, 2018, 02:07:59 AM »
Have you tried closing out the program and restarting?

Yes,  I have also tried running on Ubuntu and Windows.  Versions 8.0.3 and 7.0.2.  Simple clean install working in watch mode does it every time.  Crashes after running a few hours constantly. 

Offline bobzilla

  • Rookie
  • *
  • Posts: 11
    • View Profile
Re: Cannot read property 'Available' of undefined
« Reply #10 on: February 11, 2018, 04:03:04 AM »
Damn..  So mine is similar.  Mine will work for 30mins to an hour.  It will go about 400+ rounds then start over.  I don't know why its starting over but when it does that seems to generate the error.   I don't ever remember the bot starting over? 

Offline sloaleks

  • Contributor
  • **
  • Posts: 610
    • View Profile
Re: Cannot read property 'Available' of undefined
« Reply #11 on: February 11, 2018, 07:16:55 AM »
of course it does. read the wiki, it's a setting.

Offline mhcmining

  • Rookie
  • *
  • Posts: 10
    • View Profile
Re: Cannot read property 'Available' of undefined
« Reply #12 on: February 12, 2018, 10:45:23 PM »
I have the same issue. I'm running 803 on a centos 7 box.  This is really aggrevating.  Another thing happening is the web interface will lock up. It did it both on Win10 64Bit and Centos 7.

Offline jimbogbt

  • Rookie
  • *
  • Posts: 16
    • View Profile
Re: Cannot read property 'Available' of undefined
« Reply #13 on: February 19, 2018, 08:32:47 PM »
Figured out it's not a big issue just a small communication error obtaining info from Bittrex.
Each time you see it in your logs window is an instance of it happening (though with no timestamp which would help / ease the stress)
So if you only have 4 or 5 instances of it in the window but your bot has completed about 10,000 cycles, I wouldnt worry too much.....

Offline jbpeanut82

  • Rookie
  • *
  • Posts: 6
    • View Profile
Re: Cannot read property 'Available' of undefined
« Reply #14 on: February 24, 2018, 07:35:25 PM »
Figured out it's not a big issue just a small communication error obtaining info from Bittrex.
Each time you see it in your logs window is an instance of it happening (though with no timestamp which would help / ease the stress)
So if you only have 4 or 5 instances of it in the window but your bot has completed about 10,000 cycles, I wouldnt worry too much.....

Except it occurs more and more often the longer the bot runs.  It's not just a log entry as the bot is crashing/restarting each time.