Comments (21)
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)
from foxbit_bot.
Olá @wendellpalazzo, sua aplicação está funcionando? Fiz o seu procedimento e ainda está dando o mesmo erro do @didiminho :
(node:23803) UnhandledPromiseRejectionWarning: #
(node:23803) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:23803) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
from foxbit_bot.
Eu tive esse problema sim... porém peguei o pull request que foi feito corrigindo algumas chamadas no index.js e o package.json
Então atualize o seu package.json com este pull:
https://raw.githubusercontent.com/eduardofx/Foxbit_Bot/249ef7ff952aa022eb74966acf7030be6b76ff44/package.json
e também faça o mesmo para o index.js:
https://raw.githubusercontent.com/eduardofx/Foxbit_Bot/249ef7ff952aa022eb74966acf7030be6b76ff44/index.js
após isso, repita as operações que indiquei mais acima
from foxbit_bot.
Fiz isso, mas ainda deu o mesmo erro. Vc teria como subir o seu projeto no Git?
from foxbit_bot.
ok @mateusmascarenhas enviei o projeto:
https://github.com/wendellpalazzo/Foxbit_Bot
confirme as versões do node e npm q estão instalados ae no seu pc/mac... que comentei no projeto
from foxbit_bot.
Obrigado @wendellpalazzo. Rapaz testei aqui, e ainda está persistindo neste erro, mesmo após ter colocado a versão que você sugeriu.
from foxbit_bot.
que loucura @mateusmascarenhas!
Fiz um clone do que subi pro git..
rodei estes comandos
atualizei o node e npm
removi o node_modules deste projeto (se existir)
removi o cache do npm (npm cache clean --force)
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)
iniciou normal.. ah .. .estou usando um MAC
from foxbit_bot.
Realmente @wendellpalazzo, por incrível que pareça eu também estou usando hahah...
from foxbit_bot.
Só uma pergunta, o seu node e o npm já estavam desatualizados, ou você colocou nessa versão propositalmente?
from foxbit_bot.
from foxbit_bot.
Você poderia verificar a versão do seu node e npm? Aqui o meu node tá na 9.4.0 e o npm na 5.6.0
from foxbit_bot.
depois irei testar para ver se ta funcionando
from foxbit_bot.
matheus mais ta valendo apena usar a foxbit para robo ??
from foxbit_bot.
Tô querendo usar para trading, acredito que dá para ter alguns lucros nessa exchange se o bot realmente estiver funcionando...
from foxbit_bot.
from foxbit_bot.
Algúem sabe como que eu consigo minha API key da Foxbit?
from foxbit_bot.
from foxbit_bot.
@wendellpalazzo tudo beleza? fiz conforme seu projeto e o mesmo está dando este erro:
"C:\Users\Ricardo\Documents\Foxbit_Bot\node_modules\blinktrade\lib\wsTransport.js:165
throw new Error('Error: ' + data.Detail + ' ' + data.Description);
^
Error: Error: Invalid message Invalid message
at BlinkTradeWS.onMessage (C:\Users\Ricardo\Documents\Foxbit_Bot\node_modules\blinktrade\lib\wsTransport.js:165:15)
at WebSocket.onMessage (C:\Users\Ricardo\Documents\Foxbit_Bot\node_modules\ws\lib\WebSocket.js:442:14)
at emitTwo (events.js:126:13)
at WebSocket.emit (events.js:214:7)
at Receiver.ontext (C:\Users\Ricardo\Documents\Foxbit_Bot\node_modules\ws\lib\WebSocket.js:841:10)
at C:\Users\Ricardo\Documents\Foxbit_Bot\node_modules\ws\lib\Receiver.js:536:18
at Receiver.applyExtensions (C:\Users\Ricardo\Documents\Foxbit_Bot\node_modules\ws\lib\Receiver.js:371:5)
at C:\Users\Ricardo\Documents\Foxbit_Bot\node_modules\ws\lib\Receiver.js:508:14
at Receiver.flush (C:\Users\Ricardo\Documents\Foxbit_Bot\node_modules\ws\lib\Receiver.js:347:3)
at Receiver.finish (C:\Users\Ricardo\Documents\Foxbit_Bot\node_modules\ws\lib\Receiver.js:541:12)"
poderia me ajudar?
from foxbit_bot.
@wendellpalazzo ah, tenho a mesma versão do node e do npm, rodei o index com o comando NODE_ENV=production node index.js
mesmo assim deu o erro acima.
from foxbit_bot.
from foxbit_bot.
Obrigado @wendellpalazzo deu certo aqui.
from foxbit_bot.
Related Issues (16)
- Não inicia a aplicação HOT 5
- Problema na incialização HOT 5
- para o bot do nada HOT 22
- Conflitos no merge.
- Erro de rejeição HOT 4
- Hello, you forgot to merge index.js in master
- Conflitos no merge
- Any working version of this? HOT 1
- Ajuda na instalação HOT 15
- Parou de Vender, só Compra HOT 1
- Bot Morrendo com Cancela Ordem - v 2.0 HOT 1
- Disparando ordens repetidas- v 2.0
- Ultima versão HOT 4
- NPM start error HOT 5
- Ok!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from foxbit_bot.