Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API key does not start with "SG.". #23

Open
kafarik opened this issue Dec 16, 2021 · 1 comment
Open

API key does not start with "SG.". #23

kafarik opened this issue Dec 16, 2021 · 1 comment

Comments

@kafarik
Copy link

kafarik commented Dec 16, 2021

Hello dear developer team,
Please help me in resolving the following error:

npm run start

[email protected] start /home/beisserikbay/binance-dca-bot
node src/bot.js
API key does not start with "SG.".
/home/beisserikbay/binance-dca-bot/node_modules/mongodb-connection-string-url/lib/index.js:66
throw new MongoParseError(Invalid connection string "${uri}");
^
MongoParseError: Invalid connection string "your-mongodb-atlas-uri"
at new ConnectionString (/home/beisserikbay/binance-dca-bot/node_modules/mongodb-connection-string-url/lib/inde
x.js:66:19)
at Object.parseOptions (/home/beisserikbay/binance-dca-bot/node_modules/mongodb/lib/connection_string.js:210:17
)
at new MongoClient (/home/beisserikbay/binance-dca-bot/node_modules/mongodb/lib/mongo_client.js:62:46)
at new MongoDb (file:///home/beisserikbay/binance-dca-bot/src/services/mongodb.js:14:17)
at file:///home/beisserikbay/binance-dca-bot/src/bot.js:57:17
at ModuleJob.run (internal/modules/esm/module_job.js:183:25)
at async Loader.import (internal/modules/esm/loader.js:178:24)
at async Object.loadESM (internal/process/esm_loader.js:68:5)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: node src/bot.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/beisserikbay/.npm/_logs/2021-12-16T21_58_30_042Z-debug.log

@informagico
Copy link
Contributor

Hello @kafarik, just remove the MONGODB_URI variable from your configuration/environment.
It seems that you're still with the default your-mongodb-atlas-uri value.
Generally speaking, do not set any variable for a service that you're not gonna use.

Take a look at the README for further details.
Hope this will help you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants