Gunthy

GUNBOT: The automatic profit generator => Technical Support & Development => Topic started by: Singman on April 28, 2019, 05:45:32 PM

Title: TypeError: Parse buffer must be String or Buffer
Post by: Singman on April 28, 2019, 05:45:32 PM
I was using Gunbot with no problem on that VM but I stopped it for licence problem (still not resolved, see my previous message, waiting for Aitor answer who got my key and wallet address...)
But now, trying to restart the program...

System : Ubuntu 18.04.2 LTS
Running Gunbot :
Code: [Select]
Loading config...
   info  - socket.io started
GUI Server Deployed: http://localhost:5000
TypeError: Parse buffer must be String or Buffer
    at Parser.parse (/snapshot/gblackv12/node_modules/node-expat/lib/node-expat.js:23:22)
    at Object.module.exports [as toJson] (/snapshot/gblackv12/node_modules/xml2json/lib/xml2json.js:172:17)
    at Request._callback (/snapshot/gblackv12/bot.gunbot.js:0:0)
    at Request.init.self.callback (/snapshot/gblackv12/node_modules/request/request.js:185:22)
    at Request.emit (events.js:159:13)
    at Request.onRequestError (/snapshot/gblackv12/node_modules/request/request.js:881:8)
    at ClientRequest.emit (events.js:159:13)
    at Socket.socketErrorListener (_http_client.js:389:9)
    at Socket.emit (events.js:159:13)
    at emitErrorNT (internal/streams/destroy.js:64:8)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9) 'Uncaught Exception thrown'
Title: Re: TypeError: Parse buffer must be String or Buffer
Post by: Aitor on May 02, 2019, 12:10:23 AM
I was using Gunbot with no problem on that VM but I stopped it for licence problem (still not resolved, see my previous message, waiting for Aitor answer who got my key and wallet address...)
But now, trying to restart the program...

System : Ubuntu 18.04.2 LTS
Running Gunbot :
Code: [Select]
Loading config...
   info  - socket.io started
GUI Server Deployed: http://localhost:5000
TypeError: Parse buffer must be String or Buffer
    at Parser.parse (/snapshot/gblackv12/node_modules/node-expat/lib/node-expat.js:23:22)
    at Object.module.exports [as toJson] (/snapshot/gblackv12/node_modules/xml2json/lib/xml2json.js:172:17)
    at Request._callback (/snapshot/gblackv12/bot.gunbot.js:0:0)
    at Request.init.self.callback (/snapshot/gblackv12/node_modules/request/request.js:185:22)
    at Request.emit (events.js:159:13)
    at Request.onRequestError (/snapshot/gblackv12/node_modules/request/request.js:881:8)
    at ClientRequest.emit (events.js:159:13)
    at Socket.socketErrorListener (_http_client.js:389:9)
    at Socket.emit (events.js:159:13)
    at emitErrorNT (internal/streams/destroy.js:64:8)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9) 'Uncaught Exception thrown'

Hi Singman, I have spent some days out of my city. I have been in a small village and the wifi was broken, so my responses took longer than usual during last few days. Now I'm back to my city.

Your reseller is no longer active, I will help you to link your api to your wallet, I have sent you a PM.

Regarding the error msg above, it can be caused by several things, most of the times it happens when you have "Multiple_base" parameter activated while you are only running 1 base coin.
Title: Re: TypeError: Parse buffer must be String or Buffer
Post by: Singman on May 04, 2019, 07:36:08 AM
Thanks for your answer.

But I dont think the source of the error is in the bot's configuration.
I have an old VM with a gunbot 12.8.3 working. I take all the directory and duplicate it on a new VM and got the previous error.
I've read the doc but I dont see any software requirements before running the bot.

No need to have node.js insalled ?
Title: Re: TypeError: Parse buffer must be String or Buffer
Post by: Aitor on May 06, 2019, 07:23:09 PM
Node.js is included in the bot, no need to install it.
Try removing the files placed in "Json" directory and gunbotgui.db
And upgrade to latest version:
https://gunbot.shop/category/downloads/
Or even better, do a fresh install of latest version.
Title: Re: TypeError: Parse buffer must be String or Buffer
Post by: coinatra on August 11, 2019, 12:37:35 PM
Hi,
maybe this helps:
I got the same message when I re-setup my system. Neither deleting config.js, the files in the json folder nor gunbotgui.db helped. Turns out it was something trivial: network connectivity issues. Specifically, the DNS I used was not responding. Fixed DNS, worked like a charm.