edeng23 / binance-trade-bot

Automated cryptocurrency trading bot
GNU General Public License v3.0
7.88k stars 2.19k forks source link

UnhandledPromiseRejectionWarning: Error: Invalid API-key, IP, or permissions for action. #405

Open dewelloper opened 3 years ago

dewelloper commented 3 years ago

Hello All,

Everything is ok on my local environment (not in live) also the key and secret exist but still i could not resolve this error what is the reason. Configured: Redis, Mongo, Phyton etc.. And my second issue: How do you working with this package.json while developing new features "scripts": { "prepare": "husky install", "start": "node dist/server.js", "dev": "cross-env NODE_ENV=development nodemon app/server.js", "build": "cross-env NODE_ENV=production webpack --config webpack.config.prod.js --progress --profile", "lint": "eslint ./app --fix", "test": "cross-env y jest --coverage --detectOpenHandles", "docker:build": "docker build . --build-arg PACKAGE_VERSION=$(node -p \"require('./package.json').version\") --build-arg GIT_HASH=$(git rev-parse --short HEAD) --build-arg NODE_ENV=production --target production-stage -t chrisleekr/binance-trading-bot:latest", "docker:build:dev": "docker build . --build-arg PACKAGE_VERSION=$(node -p \"require('./package.json').version\") --build-arg GIT_HASH=$(git rev-parse --short HEAD) --build-arg NODE_ENV=development --target dev-stage -t chrisleekr/binance-trading-bot:latest", "docker:build:win": "powershell -NoProfile -ExecutionPolicy Unrestricted -Command ./scripts/docker-build.ps1", "migrate:create": "./node_modules/.bin/migrate create", "migrate:up": "./node_modules/.bin/migrate up --store=/srv/mongo-state-storage.js", "migrate:down": "./node_modules/.bin/migrate down --store=/srv/mongo-state-storage.js" },

Is there anyone fought with this? thanks

shhhmel commented 3 years ago

Make sure you grant needed permissions to your API key on Binance.

dewelloper commented 3 years ago

Thank you. They need feature account I defined it but just my error changed as "not defined", which coming from their system. Interesting