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

Error connection to mongoDB #6

Open
Sitholezw opened this issue Sep 23, 2024 · 2 comments
Open

Error connection to mongoDB #6

Sitholezw opened this issue Sep 23, 2024 · 2 comments

Comments

@Sitholezw
Copy link

Sitholezw commented Sep 23, 2024

@burakorkmez This is how the error reads

The uri parameter to openUri() must be a string, got "undefined". Make sure the first parameter to mongoose.connect() or mongoose.createConnection() is a string.

@PY-SENSEI
Copy link

@Sitholezw it simply means that ur connections string has error. please check your mongodb connections string and check for the error.

@PiyushGaur09
Copy link

A simple way to fix this is to put your connection URL in double quotes like mongoose.connect("URL") and this will fix your issue

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

3 participants