Mongo not connecting due to ip issues

I whitelisted in mongo and dont have any problems with my bot that uses the same connection method and string but my node site wont work.

Repl link:

code snippet

Hi @linkadmin I tried to run your Repl and, after successfully displaying the main menu, this appears after clicking on “login”:


Can you provide more information about your issue please?

Seems like it works now!