Here goes a new question Connecting to mongoDB

I consle.log connection and i am connected to mongoDB

and with err

Error: listen EADDRINUSE: address already in use :::3000

It would be very helpful if you post your current code.



.then(console.log('Connected to MongoDB'));

and it stands in the console

connectid to mongoDB

(node:2173) UnhandledPromiseRejectionWarning: MongooseError: 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.

In VS Code was working fine no err…

And I rfresh it it throws now this
Connected to MongoDB
throw er; // Unhandled ‘error’ event

Error: listen EADDRINUSE: address already in use :::3000

When I google your error message, I get a ton of stackoverflow answers.

Are you trying to run multiple servers for the same port?

Thenk`s your are realy nice person
I now withaut googling that the port is cloosed

I`ereised my soluson and sing out of Replit
Learning Heroku to have my on adress and work with VS Code
Thenk you…

and no I`am not running multiple servers

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.