why am i getting this invalid URl error
Karthik27 (3)

Here is my code
import pymongo

Define a new client.

client = pymongo.MongoClient("mongodb+srv://admin:[email protected]/test?retryWrites=true&w=majority")
db = client.test

i have created cluster as per the steps mentioned in tutorials

You are viewing a single comment. View All
leon332157 (218)

This really is an weird error because the URL looks fine to me.

Karthik27 (3)

@leon332157 yes dono whats wrong? do i need to download any package?