MongoDB and Mongoose - Create and Save a Record

Hi all.

i got this error on glitch console on challenge:

‘UnhandledPromiseRejectionWarning: MongoTimeoutError: Server selection timed out after 30000 ms’

thanks a lot!


That’s because the server is down (you may be behind a firewall too) or the mongodb URI is wrong. Check the connection settings and that the server is running.

Hi, thanks for feedback…

mongodb URI was not wrong … the password contained special characters, specifically #. I tried HEX notation unsuccessfully. I changed the password in Atlas and was able to connect. Are there any tips on special characters in mongodb?

Did you try surrounding the password in single quotes?

no, i did not… only set HEX code for special character.