I don't know what the problem is, i have tried so many solutions i saw on the internet

I keep getting this error, it seems like i can’t connect to mongodb (btw, the credentials that were shown in the pic is for example purposes only)

I am using google colab to run my python script and I use mongodb online.