Hey @Phung_Dao,
Welcome to the MongoDB Community forums ![]()
It appears that other members of the community had encountered the same issue before, and it was determined that the problem does not lie with MongoDB, but with repl.it. Would you kindly consider sending a bug report to the repl.it team to bring their attention to the issue? Additionally, for further details, please refer to the thread I have linked below.
- MongoDB DNS error - Replit Help - Replit Ask
- Some users are having trouble connecting to MongoDB - Bug Reports - Replit Ask
- No connection to MongoDB from Replit
Best,
Kushagra