Username: Password:

Author Topic: Gunbot faulted out and will no longer start  (Read 11262 times)

Offline bney

  • Rookie
  • *
  • Posts: 33
    • View Profile
Gunbot faulted out and will no longer start
« on: December 19, 2021, 10:04:10 PM »
Gunbot has suddenly decided it doesnt want to load anymore. Below is the error its throwing repeatedly.



Your registered exchanges:
KRAKEN:

Loading exchange - kraken
Loading data....
TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at isEqualTwoData (C:\snapshot\enricoranucci\Desktop\STABLE\gui\classes\common.js)
    at isEqualTwoData (C:\snapshot\enricoranucci\Desktop\STABLE\gui\classes\common.js)
    at isEqualTwoData (C:\snapshot\enricoranucci\Desktop\STABLE\gui\classes\common.js)
    at isEqualTwoData (C:\snapshot\enricoranucci\Desktop\STABLE\gui\classes\common.js)
    at isEqualTwoData (C:\snapshot\enricoranucci\Desktop\STABLE\gui\classes\common.js)
    at isEqualTwoData (C:\snapshot\enricoranucci\Desktop\STABLE\gui\classes\common.js)
    at Timeout._onTimeout (C:\snapshot\enricoranucci\Desktop\STABLE\gui\sockets\coremem.js)
    at listOnTimeout (internal/timers.js:549:17)
    at processTimers (internal/timers.js:492:7) Uncaught Exception thrown

Tracked it down to the following pair in the config file
"USD-STORJ": {
                "strategy": "bbta-tssl",
                "enabled": true,
                "override": {
                    "TRADING_LIMIT": "20",
                    "MIN_VOLUME_TO_SELL": "10",
                    "MIN_VOLUME_TO_BUY": "10",
                    "BOUGHT_PRICE": null,
                    "PERIOD": "1h"
                }
            }

I set bought price to a value since I imported several hundred coin to the exchange. Gunbot eventually sold it. Looks like Gunbot set the bought_price to null then
got all upset about it. Gunbot should have deleted the entry alltogether when it was no longer valid. I would call that a bug.
« Last Edit: December 19, 2021, 10:11:23 PM by bney »

Offline Aitor

  • Administrator
  • *****
  • Posts: 570
  • Telegram: @AitorRuiz Gunbot.shop
    • View Profile
    • Gunbot
Re: Gunbot faulted out and will no longer start
« Reply #1 on: December 22, 2021, 09:25:30 AM »
Gunbot has suddenly decided it doesnt want to load anymore. Below is the error its throwing repeatedly.



Your registered exchanges:
KRAKEN:

Loading exchange - kraken
Loading data....
TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at isEqualTwoData (C:\snapshot\enricoranucci\Desktop\STABLE\gui\classes\common.js)
    at isEqualTwoData (C:\snapshot\enricoranucci\Desktop\STABLE\gui\classes\common.js)
    at isEqualTwoData (C:\snapshot\enricoranucci\Desktop\STABLE\gui\classes\common.js)
    at isEqualTwoData (C:\snapshot\enricoranucci\Desktop\STABLE\gui\classes\common.js)
    at isEqualTwoData (C:\snapshot\enricoranucci\Desktop\STABLE\gui\classes\common.js)
    at isEqualTwoData (C:\snapshot\enricoranucci\Desktop\STABLE\gui\classes\common.js)
    at Timeout._onTimeout (C:\snapshot\enricoranucci\Desktop\STABLE\gui\sockets\coremem.js)
    at listOnTimeout (internal/timers.js:549:17)
    at processTimers (internal/timers.js:492:7) Uncaught Exception thrown

Tracked it down to the following pair in the config file
"USD-STORJ": {
                "strategy": "bbta-tssl",
                "enabled": true,
                "override": {
                    "TRADING_LIMIT": "20",
                    "MIN_VOLUME_TO_SELL": "10",
                    "MIN_VOLUME_TO_BUY": "10",
                    "BOUGHT_PRICE": null,
                    "PERIOD": "1h"
                }
            }

I set bought price to a value since I imported several hundred coin to the exchange. Gunbot eventually sold it. Looks like Gunbot set the bought_price to null then
got all upset about it. Gunbot should have deleted the entry alltogether when it was no longer valid. I would call that a bug.

What version of the bot are you using?

Try removing the line  "BOUGHT_PRICE": null,