I am trying to learn how to use CosmosDB with Flask. I went through the tutorial on building a flask app using CosmosDB for MongoDB API(https://docs.microsoft.com/en-us/azure/cosmos-db/create-mongodb-flask#run-the-web-app). I keep getting the error:
pymongo.errors.ConnectionFailure: [WinError 10061] No connection could be made because the target machine actively refused it.
The emulator is running, but it will not connect. I followed the instructions and got it to work once before, but now it no longer works.
EDIT: I do have the Python Extension for VSCode