Getting handshake error when trying to connect

I am trying to connect to cloud mongodb via VScode using mongoose. I have whitelisted my IP yet I keep getting 8000 error along with handshake and reset pool errors. What else can I do?