DimensionSoftware / mcafee-bot

buy coins based on @officialmcafee tweets
63 stars 32 forks source link

Unable to buy PromiseRejectionWarning #6

Closed PashaB closed 6 years ago

PashaB commented 6 years ago

When I use the bot and it detects my friends post of coin of the day it initiates the buy and fails:

COIN OF THE DAY! Coin of the day: BURST -- First truly Green coin and most overlooked coin. Uses 400 times less power than Bitcoin.… https://t.co/UnwvXxOhs0 { found: true, symbol: 'BURST', name: 'BURST' } attempting to buy BURST (node:7735) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): #

I kept thinking I must have screwed something up. Maybe I have. Does that error mean bittrex isn't handling my api request cuz something is wrong on my end? I have the secret and token in secrets.env defn. It sources it fine cuz I can read tweets with the bot. But when it buys it fails.

PashaB commented 6 years ago

I've tried logging some API requests and I see I'm unable to hit the bittrex api. I've whitelisted my public IP at home. I think this code is solid and runs just fine but I just cna't get bittrex to respond. I know I didn't copy paste stuff wrong. That would be dumb. Twitter api works but bittrex isn't.

PashaB commented 6 years ago

Alright actually the console.log starts returning now: COIN OF THE DAY! Coin of the day: BURST -- truly Green and most overlooked coin. Uses 400 times less power than the Bitcoin. Super… https://t.co/FXAdlSUXds { found: true, symbol: 'BURST', name: 'BURST' } attempting to buy BURST { Bid: 0.0000048, Ask: 0.00000481, Last: 0.0000048 } (node:9934) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): # (node:9934) [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.

PashaB commented 6 years ago

I'm an idiot, please close.

beppu commented 6 years ago

I'm glad you figured it the problem.