rafaelwdornelas / Foxbit_Bot

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

Ultima versão #6

Open mrdamaia opened 7 years ago

mrdamaia commented 7 years ago

Bom dia Amigo,

Na ultima versão ele dá esse erro, o que pode ser?:

" Connected BlinkTradeWS [1:41:00] Foxbit Balance: 0.00 BRL | 0.003162 BTC Server running at: http://localhost:3000 [1:41:07] OB:NEW_ORDER:sell:28 BUY.Check4: false [1:41:13] OB:DELETE_ORDER:sell:18 C:\Users\Luiz\Downloads\Foxbit_Bot-master\Foxbit_Bot-master\index.js:231 for (i = 0 ; i < variables.orderbooktemp.asks.length ;i++) ^

ReferenceError: i is not defined at EventEmitter.onOrderBookDeleteOrder (C:\Users\Luiz\Downloads\Foxbit_Bot-master\Foxbit_Bot-master\index.js:231:12) at EventEmitter.emit (C:\Users\Luiz\Downloads\Foxbit_Bot-master\Foxbit_Bot-master\node_modules\eventemitter2\lib\eventemitter2.js:358:22) at C:\Users\Luiz\Downloads\Foxbit_Bot-master\Foxbit_Bot-master\node_modules\blinktrade\lib\ws.js:274:44 at Array.map (native) at Object.subscribeEvent [as callback] (C:\Users\Luiz\Downloads\Foxbit_Bot-master\Foxbit_Bot-master\node_modules\blinktrade\lib\ws.js:255:25) at BlinkTradeWS.dispatchPromise (C:\Users\Luiz\Downloads\Foxbit_Bot-master\Foxbit_Bot-master\node_modules\blinktrade\lib\wsTransport.js:177:85) at BlinkTradeWS.onMessage (C:\Users\Luiz\Downloads\Foxbit_Bot-master\Foxbit_Bot-master\node_modules\blinktrade\lib\wsTransport.js:170:12) at WebSocket.onMessage (C:\Users\Luiz\Downloads\Foxbit_Bot-master\Foxbit_Bot-master\node_modules\ws\lib\WebSocket.js:442:14) at emitTwo (events.js:106:13) at WebSocket.emit (events.js:191:7)

npm ERR! Windows_NT 10.0.14393 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "start" npm ERR! node v6.9.5 npm ERR! npm v3.10.10 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! C:\Users\Luiz\Downloads\Foxbit_Bot-master\Foxbit_Bot-master\npm-debug.log

"

Acritikey commented 7 years ago

Isso está acontecendo.

BTC= STATUS UNVALIABLE.

captura de pantalla 2017-02-21 a las 10 56 50 p m

astfarias commented 7 years ago

Tem certeza que o serviço está executando no terminal? Pq isso só deveria acontecer se vc interrompesse ou o serviço nem executasse...

Acritikey commented 7 years ago

É executado. Use mac.

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)