小编Tim*_*upp的帖子

OSError ssl 握手?

我是 Python 新手,无法分析以下错误。有人知道为什么我的脚本崩溃了吗?

我正在网上抓取一些数据,每次抓取工具命中时,脚本都会将该时间写入数据库(以检查脚本是否还活着)。每隔几天脚本就会崩溃。

提前致谢。

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 849, in _validate_conn
    conn.connect()
  File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 356, in connect
    ssl_context=context)
  File "/usr/local/lib/python3.7/site-packages/urllib3/util/ssl_.py", line 359, in ssl_wrap_socket
    return context.wrap_socket(sock, server_hostname=server_hostname)
  File "/usr/local/lib/python3.7/ssl.py", line 412, in wrap_socket
    session=session
  File "/usr/local/lib/python3.7/ssl.py", line 850, in _create
    self.do_handshake()
  File "/usr/local/lib/python3.7/ssl.py", line 1108, in do_handshake
    self._sslobj.do_handshake()
OSError: [Errno 0] Error

During handling of the above exception, another exception …
Run Code Online (Sandbox Code Playgroud)

python error-handling runtime-error firebase-realtime-database

6
推荐指数
0
解决办法
1075
查看次数