I am trying to follow this tutorial: https://learn.microsoft.com/en-gb/azure/cosmos-db/mongodb/quickstart-python
However when I run the line (from the tutorial, https://github.com/Azure-Samples/azure-cosmos-db-mongodb-python-getting-started/blob/main/run.py, line 60)
client = pymongo.MongoClient(CONNECTION_STRING)
I get the following error
File ...\lib\site-packages\pymongo\mongo_client.py:753, in MongoClient.__init__(self, host, port, document_class, tz_aware, connect, type_registry, **kwargs)
751 fqdn = res["fqdn"]
752 else:
\--> 753 seeds.update(uri_parser.split_hosts(entity, port))
754 if not seeds:
755 raise ConfigurationError("need to specify at least one host")
File ...\lib\site-packages\pymongo\uri_parser.py:371, in split_hosts(hosts, default_port)
369 for entity in hosts.split(","):
370 if not entity:
\--> 371 raise ConfigurationError("Empty host (or extra comma in host list).")
372 port = default_port
373 # Unix socket entities don't have ports
ConfigurationError: Empty host (or extra comma in host list).
I am using the connection string from my Cosmos DB for MongoDB account > Connection String > Primary connection string. Any idea on how I can get past this?