While calling CosmosClient(url,key,proxy_config = d) in python i am getting error?

1k Views Asked by At

While using client to configure and execute requests to the Azure Cosmos DB service

`
d=ProxyConfiguration()
d.Host='string'
d.Port=int
client = CosmosClient(url,key,proxy_config = d) `

I am getting error

azure.core.exceptions.ServiceRequestError:<urllib3.connection.HTTPSConnection object at 0x0000020EC3BCCD60>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed

What is the right way to pass the values to proxy_config parameter ?

CosmoClient

0

There are 0 best solutions below