• 海蓝的神明
    2024-01-10 来自江苏
    代码报了一下错误: --------------------------------------------------------------------------- SSLEOFError Traceback (most recent call last) File d:\Python3.10.4\lib\site-packages\httpcore\_exceptions.py:10, in map_exceptions(map) 9 try: ---> 10 yield 11 except Exception as exc: # noqa: PIE786 File d:\Python3.10.4\lib\site-packages\httpcore\_backends\sync.py:168, in SyncStream.start_tls(self, ssl_context, server_hostname, timeout) 167 self.close() --> 168 raise exc 169 return SyncStream(sock) File d:\Python3.10.4\lib\site-packages\httpcore\_backends\sync.py:163, in SyncStream.start_tls(self, ssl_context, server_hostname, timeout) 162 self._sock.settimeout(timeout) --> 163 sock = ssl_context.wrap_socket( 164 self._sock, server_hostname=server_hostname 165 ) 166 except Exception as exc: # pragma: nocover File d:\Python3.10.4\lib\ssl.py:512, in SSLContext.wrap_socket(self, sock, server_side, do_handshake_on_connect, suppress_ragged_eofs, server_hostname, session) 506 def wrap_socket(self, sock, server_side=False, 507 do_handshake_on_connect=True, 508 suppress_ragged_eofs=True, 509 server_hostname=None, session=None): 510 # SSLSocket class handles server_hostname encoding before it calls ... 908 'HTTP Request: %s %s "%i %s"', request.method, request.url, response.status_code, response.reason_phrase 909 ) 911 try: APIConnectionError: Connection error. Output is truncated. View as a scrollable element or open in a text editor. Adjust cell output settings...
    展开
    
    