I am build a Flask app using Azure Cosmos DB for MongoDB API and I am having a connection error in the following lines. I am following this tut: https://github.com/Azure-Samples/CosmosDB-Flask-Mongo-Sample
I am getting error in the following line:
client = MongoClient("mongodb://127.0.0.1:10250/?ssl=true")
When I run the flask server, I get this error: pymongo.errors.ConnectionFailure: [WinError 10061] No connection could be made because the target machine actively refused it. Can anyone resolve it?