Username: Password:

Author Topic: TypeError: Cannot read property 'enabled' of undefined  (Read 9059 times)

Offline kamil

  • Rookie
  • *
  • Posts: 2
    • View Profile
TypeError: Cannot read property 'enabled' of undefined
« on: February 22, 2020, 03:26:08 PM »
Hi, I've been running Gunbot in version v13 without problems, but cannot start bot after upgrading to v16. What I did was downloading lin.zip, extracting it, copying config.js, gunbotgui.db and /json folder (since I have DU pairs) from previous installation.

Here's head of log:

Loading config...
Fontconfig error: Cannot load default config file
(Telegram) Starting bot as Gunbot
TypeError: Cannot read property 'enabled' of undefined
    at Bot.start.loadConfig.then (/snapshot/bitrageT/bot.gunbot.js:0:0)
    at tryCatcher (/snapshot/bitrageT/node_modules/bluebird/js/release/util.js:16:23)
    at Promise.module.exports.Promise._settlePromiseFromHandler (/snapshot/bitrageT/node_modules/bluebird/js/release/promise.js:512:31)
    at Promise.module.exports.Promise._settlePromise (/snapshot/bitrageT/node_modules/bluebird/js/release/promise.js:569:18)
    at Promise.module.exports.Promise._settlePromise0 (/snapshot/bitrageT/node_modules/bluebird/js/release/promise.js:614:10)
    at Promise.module.exports.Promise._settlePromises (/snapshot/bitrageT/node_modules/bluebird/js/release/promise.js:694:18)
    at _drainQueueStep (/snapshot/bitrageT/node_modules/bluebird/js/release/async.js:138:12)
    at _drainQueue (/snapshot/bitrageT/node_modules/bluebird/js/release/async.js:131:9)
    at Async._drainQueues (/snapshot/bitrageT/node_modules/bluebird/js/release/async.js:147:5)
    at Immediate.__dirname.Async.drainQueues [as _onImmediate] (/snapshot/bitrageT/node_modules/bluebird/js/release/async.js:17:14)
    at runCallback (timers.js:800:20)
    at tryOnImmediate (timers.js:762:5)
    at processImmediate [as _immediateCallback] (timers.js:733:5) 'Unhandled Rejection at Promise' Promise {
  _bitField: 18087936,
  _fulfillmentHandler0: TypeError: Cannot read property 'enabled' of undefined
    at Bot.start.loadConfig.then (/snapshot/bitrageT/bot.gunbot.js:0:0)
    at tryCatcher (/snapshot/bitrageT/node_modules/bluebird/js/release/util.js:16:23)
    at Promise.module.exports.Promise._settlePromiseFromHandler (/snapshot/bitrageT/node_modules/bluebird/js/release/promise.js:512:31)
    at Promise.module.exports.Promise._settlePromise (/snapshot/bitrageT/node_modules/bluebird/js/release/promise.js:569:18)
    at Promise.module.exports.Promise._settlePromise0 (/snapshot/bitrageT/node_modules/bluebird/js/release/promise.js:614:10)
    at Promise.module.exports.Promise._settlePromises (/snapshot/bitrageT/node_modules/bluebird/js/release/promise.js:694:18)
    at _drainQueueStep (/snapshot/bitrageT/node_modules/bluebird/js/release/async.js:138:12)
    at _drainQueue (/snapshot/bitrageT/node_modules/bluebird/js/release/async.js:131:9)
    at Async._drainQueues (/snapshot/bitrageT/node_modules/bluebird/js/release/async.js:147:5)
    at Immediate.__dirname.Async.drainQueues [as _onImmediate] (/snapshot/bitrageT/node_modules/bluebird/js/release/async.js:17:14)
    at runCallback (timers.js:800:20)
    at tryOnImmediate (timers.js:762:5)
    at processImmediate [as _immediateCallback] (timers.js:733:5),
  _rejectionHandler0: undefined,
  _promise0: undefined,
  _receiver0: undefined }

How can I solve it?

Offline CryptoDROI

  • Rookie
  • *
  • Posts: 37
  • Get Gunbot Now!
    • View Profile
    • CryptoDROI Gunbot Reseller
Re: TypeError: Cannot read property 'enabled' of undefined
« Reply #1 on: February 22, 2020, 08:34:00 PM »
You will be missing params in your old config file, open the new config and double-check what's missing from your older one
Authorized Gunbot Reseller https://cryptodroi.com/

Offline kamil

  • Rookie
  • *
  • Posts: 2
    • View Profile
Re: TypeError: Cannot read property 'enabled' of undefined
« Reply #2 on: February 23, 2020, 12:09:59 PM »
Thank you, I had missing "TRADING_FEES" key in exchanges section of config.js