Giter VIP home page Giter VIP logo

Comments (21)

wendellpalazzo avatar wendellpalazzo commented on July 27, 2024

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.

matdornela avatar matdornela commented on July 27, 2024

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.

wendellpalazzo avatar wendellpalazzo commented on July 27, 2024

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.

matdornela avatar matdornela commented on July 27, 2024

Fiz isso, mas ainda deu o mesmo erro. Vc teria como subir o seu projeto no Git?

from foxbit_bot.

wendellpalazzo avatar wendellpalazzo commented on July 27, 2024

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.

matdornela avatar matdornela commented on July 27, 2024

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.

wendellpalazzo avatar wendellpalazzo commented on July 27, 2024

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.

matdornela avatar matdornela commented on July 27, 2024

Realmente @wendellpalazzo, por incrível que pareça eu também estou usando hahah...

from foxbit_bot.

matdornela avatar matdornela commented on July 27, 2024

Só uma pergunta, o seu node e o npm já estavam desatualizados, ou você colocou nessa versão propositalmente?

from foxbit_bot.

wendellpalazzo avatar wendellpalazzo commented on July 27, 2024

from foxbit_bot.

matdornela avatar matdornela commented on July 27, 2024

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.

thiagotxd avatar thiagotxd commented on July 27, 2024

depois irei testar para ver se ta funcionando

from foxbit_bot.

thiagotxd avatar thiagotxd commented on July 27, 2024

matheus mais ta valendo apena usar a foxbit para robo ??

from foxbit_bot.

matdornela avatar matdornela commented on July 27, 2024

Tô querendo usar para trading, acredito que dá para ter alguns lucros nessa exchange se o bot realmente estiver funcionando...

from foxbit_bot.

wendellpalazzo avatar wendellpalazzo commented on July 27, 2024

from foxbit_bot.

matdornela avatar matdornela commented on July 27, 2024

Algúem sabe como que eu consigo minha API key da Foxbit?

from foxbit_bot.

wendellpalazzo avatar wendellpalazzo commented on July 27, 2024

from foxbit_bot.

ricardojbs avatar ricardojbs commented on July 27, 2024

@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.

ricardojbs avatar ricardojbs commented on July 27, 2024

@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.

wendellpalazzo avatar wendellpalazzo commented on July 27, 2024

from foxbit_bot.

ricardojbs avatar ricardojbs commented on July 27, 2024

Obrigado @wendellpalazzo deu certo aqui.

from foxbit_bot.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.