requests.exceptions.ConnectionError: HTTPSConnectionPool(host='login.chinacloudapi.cn', port=443): Max retries exceeded with url: /organizations/v2.0/.well-known/openid-configuration (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000002D69BECF430>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
### Describe the bug
Command:
az login
The command can be used after installation. But after restarting my computer, it shows this error when login.
### Related command
az login
### Errors
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='login.chinacloudapi.cn', port=443): Max retries exceeded with url: /organizations/v2.0/.well-known/openid-configuration (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))
### Issue script & Debug output
cli.knack.cli: Event: Cli.PostExecute []
### Expected behavior
none
### Environment Summary
azure-cli 2.51.0
core 2.51.0
telemetry 1.1.0
Dependencies:
msal 1.24.0b1
azure-mgmt-resource 23.1.0b2
Python location 'C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\jbian3\.azure\cliextensions'
Python (Windows) 3.10.10 (tags/v3.10.10:aad5f6a, Feb 7 2023, 17:20:36) [MSC v.1929 64 bit (AMD64)]
Legal docs and information: aka.ms/AzureCliLegal
### Additional context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.