Hello,
The error you are facing indicates that the SDK was not able to connect to Azure Cosmos DB.
Here are some steps to resolve the issue :
The error message may also indicates that the request is being blocked by your Cosmos DB account firewall settings. You may need to adjust these settings to allow the request to pass through.
Please follow the above steps to diagnose and troubleshoot the issue.
Hope this helps. If it does, please mark this answer as accepted in order for other users with same question to be able to find this topic.
Regards