|
发表于 2024-10-7 14:06:31
|
显示全部楼层
浙江省杭州市
他返回我这个 Traceback (most recent call last): File "D:\_Python\Lib\site-packages\urllib3\connection.py", line 199, in _new_conn sock = connection.create_connection( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\_Python\Lib\site-packages\urllib3\util\connection.py", line 85, in create_connection raise err File "D:\_Python\Lib\site-packages\urllib3\util\connection.py", line 73, in create_connection sock.connect(sa) TimeoutError: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。 The above exception was the direct cause of the following exception: Traceback (most recent call last): File "D:\_Python\Lib\site-packages\urllib3\connectionpool.py", line 789, in urlopen response = self._make_request( ^^^^^^^^^^^^^^^^^^^ File "D:\_Python\Lib\site-packages\urllib3\connectionpool.py", line 490, in _make_request raise new_e File "D:\_Python\Lib\site-packages\urllib3\connectionpool.py", line 466, in _make_request self._validate_conn(conn) File "D:\_Python\Lib\site-packages\urllib3\connectionpool.py", line 1095, in _validate_conn conn.connect() File "D:\_Python\Lib\site-packages\urllib3\connection.py", line 693, in connect self.sock = sock = self._new_conn() ^^^^^^^^^^^^^^^^ File "D:\_Python\Lib\site-packages\urllib3\connection.py", line 208, in _new_conn raise ConnectTimeoutError( urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0x000002669FF9B4D0>, 'Connection to video-oss.vercel.app timed out. (connect timeout=None)') The above exception was the direct cause of the following exception: Traceback (most recent call last): File "D:\_Python\Lib\site-packages\requests\adapters.py", line 667, in send resp = conn.urlopen( ^^^^^^^^^^^^^ File "D:\_Python\Lib\site-packages\urllib3\connectionpool.py", line 843, in urlopen retries = retries.increment( ^^^^^^^^^^^^^^^^^^ File "D:\_Python\Lib\site-packages\urllib3\util\retry.py", line 519, in increment raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='video-oss.vercel.app', port=443): Max retries exceeded with url: /link (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x000002669FF9B4D0>, 'Connection to video-oss.vercel.app timed out. (connect timeout=None)')) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\13173\Desktop\1pytho\yunli.py", line 23, in <module> upload_file('yunli.txt') File "C:\Users\13173\Desktop\1pytho\yunli.py", line 12, in upload_file url = get_url() ^^^^^^^^^ File "C:\Users\13173\Desktop\1pytho\yunli.py", line 7, in get_url response = requests.get('https://video-oss.vercel.app/link') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\_Python\Lib\site-packages\requests\api.py", line 73, in get return request("get", url, params=params, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\_Python\Lib\site-packages\requests\api.py", line 59, in request return session.request(method=method, url=url, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\_Python\Lib\site-packages\requests\sessions.py", line 589, in request resp = self.send(prep, **send_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\_Python\Lib\site-packages\requests\sessions.py", line 703, in send r = adapter.send(request, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\_Python\Lib\site-packages\requests\adapters.py", line 688, in send raise ConnectTimeout(e, request=request) requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='video-oss.vercel.app', port=443): Max retries exceeded with url: /link (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x000002669FF9B4D0>, 'Connection to video-oss.vercel.app timed out. (connect timeout=None)')) |
|