This repository has been archived by the owner on Jan 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 150
www.cpdaily.com 访问不了导致脚本失效了 #27
Comments
能curl -v 一下吗,主机在国外吗 |
俺国内的机子刚刚也签到失败了,没发给我微信,具体明早在看,蹲一波大神指点迷津 |
Line 50 in ef3f371
|
或者手动添加 Hosts:
|
替换后可以正常使用了,我是放在国内腾讯云函数上面的 |
这个方法也有效果 |
ghost
mentioned this issue
Jan 20, 2021
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
www.cpdaily.com 访问不了导致脚本失效了
Traceback (most recent call last):
File "/opt/urllib3/util/connection.py", line 61, in create_connection
File "/var/lang/python3/lib/python3.6/socket.py", line 743, in getaddrinfo
socket.gaierror: [Errno -2] Name or service not known
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/urllib3/connectionpool.py", line 672, in urlopen
File "/opt/urllib3/connectionpool.py", line 376, in _make_request
File "/opt/urllib3/connectionpool.py", line 994, in _validate_conn
File "/opt/urllib3/connection.py", line 300, in connect
File "/opt/urllib3/connection.py", line 169, in _new_conn
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f88b19d3518>: Failed to establish a new connection: [Errno -2] Name or service not known
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/requests/adapters.py", line 449, in send
File "/opt/urllib3/connectionpool.py", line 720, in urlopen
File "/opt/urllib3/util/retry.py", line 436, in increment
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.cpdaily.com', port=443): Max retries exceeded with url: /v6/config/guest/tenant/list (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88b19d3518>: Failed to establish a new connection: [Errno -2] Name or service not known',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/runtime/python3/bootstrap.py", line 176, in handle
File "/var/user/index.py", line 323, in main_handler
File "/var/user/index.py", line 321, in main_handler
File "/var/user/index.py", line 309, in main
File "/var/user/index.py", line 50, in getCpdailyApis
File "/opt/requests/api.py", line 76, in get
File "/opt/requests/api.py", line 61, in request
File "/opt/requests/sessions.py", line 530, in request
File "/opt/requests/sessions.py", line 643, in send
File "/opt/requests/adapters.py", line 516, in send
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.cpdaily.com', port=443): Max retries exceeded with url: /v6/config/guest/tenant/list (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88b19d3518>: Failed to establish a new connection: [Errno -2] Name or service not known',))
The text was updated successfully, but these errors were encountered: