Azure-Samples / azure-samples-python-management

This repo contains sample code for management libraries of Azure SDK for Python
MIT License
169 stars 136 forks source link

Failed to establish a new connection: [Errno 11001] getaddrinfo failed #131

Closed dddddkio closed 1 year ago

dddddkio commented 1 year ago

When I create the CostManagementClient object, there is nothing wrong, but when I use the CostManagementClient object to send a request, the error occurred.

How can I handle the exception Error?

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