rafaelwdornelas / Foxbit_Bot

Bot Automatic Trader Foxbit - Buy & Sell.
72 stars 56 forks source link

Bot Morrendo com Cancela Ordem - v 2.0 #4

Open astfarias opened 7 years ago

astfarias commented 7 years ago

Ao cancelar uma ordem de venda o bot morre e a seguinte mensagem aparece no console:

[11:18:59] Foxbit Creating Sale Order: Amount: 0.002 BTC | Price: 3149 BRL
{ btcsellamount: '0.002',
  btcsellpriceamountmin: '3149',
  btcsellpriceamountmax: '5000' }
POST Sell
/home/astfarias/softwares/bitcoin/bots/Foxbit_Bot/index.js:92
          myOrdersList_Remove("2");
          ^

ReferenceError: myOrdersList_Remove is not defined
    at IncomingMessage.<anonymous> (/home/astfarias/softwares/bitcoin/bots/Foxbit_Bot/index.js:92:11)
    at emitOne (events.js:96:13)
    at IncomingMessage.emit (events.js:189:7)
    at IncomingMessage.Readable.read (_stream_readable.js:381:10)
    at flow (_stream_readable.js:761:34)
    at resume_ (_stream_readable.js:743:3)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)

npm ERR! Linux 4.4.0-59-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
npm ERR! node v7.5.0
npm ERR! npm  v4.1.2
npm ERR! code ELIFECYCLE
npm ERR! foxbitbot@2.0.0 start: `node index.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the foxbitbot@2.0.0 start script 'node index.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the foxbitbot package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node index.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs foxbitbot
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls foxbitbot
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/astfarias/softwares/bitcoin/bots/Foxbit_Bot/npm-debug.log
wendellpalazzo commented 6 years ago

Olá... tive esse problema.. e outros que já foram reportados aqui.. resolvi fazendo assim:

atualizei o node e npm removi o node_modules removi o cache do npm depois só dar um npm install e quando for rodar o index.js.. use este comando: NODE_ENV=production node index.js (este evita o problema q reportaram de erro LyfeCicle)