无法使用seleniumwire加载网页,我在浏览器中观察到此错误。
This page isn't working
xxx.xyz didn't send any data.
ERR_EMPTY_RESPONSE当我在初始化webdriver时用selenium替换seleniumwire时,就不会再注意到这个问题了。Seleniumwire工作正常,下面提到的错误在几天前就开始发生了。
Seleniumwire版本:4.4.Python3.9 MacOS大Sur
AttributeError:模块'lib‘没有属性'SSL_CTX_get0_param'
ERROR:seleniumwire.server:127.0.0.1:61095: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/seleniumwire/thirdparty/mitmproxy/server/server.py", 第113行,在句柄"/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/seleniumwire/thirdparty/mitmproxy/server/modes/http_proxy.py",() root_layer()文件第9行,在call layer() File 第285行中,在文件"/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/seleniumwire/thirdparty/mitmproxy/server/protocol/http1.py",层() call layer() call layer() call layer()Line206中,在"/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/seleniumwire/thirdparty/mitmproxy/server/protocol/http.py",call if self._process_flow(Flow)中:文件第285行,在_process_flow返回self.handle_regular_connect(f)文件第224行中,在文件层() "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/seleniumwire/thirdparty/mitmproxy/server/protocol/tls.py",第278行中,在call self._establish_tls_with_client_and_server() self._establish_tls_with_client_and_server第358行中,在"/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/seleniumwire/thirdparty/mitmproxy/server/protocol/tls.py",_establish_tls_with_client_and_server self._establish_tls_with_server() _establish_tls_with_client_and_server self._establish_tls_with_server第445行中,在_establish_tls_with_server self.server_conn.establish_tls(文件"/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/seleniumwire/thirdparty/mitmproxy/connections.py",第295行)中,在"/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/seleniumwire/thirdparty/mitmproxy/net/tcp.py",establish_tls self.convert_to_tls(cert=client_cert,sni=sni,**kwargs)文件行382中,convert_to_tls context = tls.create_client_context(文件"/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/seleniumwire/thirdparty/mitmproxy/net/tls.py",行285,在create_client_context param = SSL._lib.SSL_CTX_get0_param(context._context)中,AttributeError:模块'lib‘没有属性'SSL_CTX_get0_param'
发布于 2021-09-27 08:33:01
这看起来像是在使用过时的密码库版本。
https://stackoverflow.com/questions/69206745
复制相似问题