O
O
Ostap Bellik2021-10-22 22:04:40
MongoDB
Ostap Bellik, 2021-10-22 22:04:40

How to solve mongoDb error MongoServerSelectionError: connect ECONNREFUSED ::1:27017?

I needed to connect to MongoDB and got this error:
MongoServerSelectionError: connect ECONNREFUSED ::1:27017

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman Mirilaczvili, 2021-10-22
@Ost123

You need to check that the MongoDB server is available at ::1:27017. It looks like the program is trying to connect over IPv6.

A
Andrey Chirkov, 2021-10-23
@andreichirkov

Unlikely, but you can try changing the server country

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question