python由于目标计算机积极拒绝 无法连接(selenium由于目标计算机积极拒绝,无法连接)

python由于目标计算机积极拒绝 无法连接(selenium由于目标计算机积极拒绝,无法连接)直接上代码 就是这么两条 case 运行起来后 第一条通过 第二条 case 报错 由于目标计算机积极拒绝 无法连接 以下是控制台报的错误 E Panda testvenvScri exe D test auto run py Active code page 65001 test session starts platform win32



直接上代码

self =

E:Panda_testvenvlibsite-packagesb3connection.py:160:


Convenience function. Connect to address (a 2-tuple ) and return the socket object. Passing the optional
timeout parameter will set the timeout on the socket instance
before attempting to connect. If no timeout is supplied, the
global default timeout setting returned by :func:
is used. If source_address is set it must be a tuple of (host, port)
for the socket to bind as a source address before making the connection.
An host of '' or port 0 tells the OS to use the default.
"""



















if err is not None:

raise err

E:Panda_testvenvlibsite-packagesb3յconnection.py:84:


Convenience function. Connect to address (a 2-tuple ) and return the socket object. Passing the optional
timeout parameter will set the timeout on the socket instance
before attempting to connect. If no timeout is supplied, the
global default timeout setting returned by :func:
is used. If source_address is set it must be a tuple of (host, port)
for the socket to bind as a source address before making the connection.
An host of '' or port 0 tells the OS to use the default.
"""



















E:Panda_testvenvlibsite-packagesb3յconnection.py:74: ConnectionRefusedError

During handling of the above exception, another exception occurred:

.. note::

.. note::

:type retries: :class:, False, or an int.

conn = None

conn.timeout = timeout_obj.connect_timeout

E:Panda_testvenvlibsite-packagesb3connectionpool.py:677:


conn.request(method, url, httplib_request_kw)

E:Panda_testvenvlibsite-packagesb3connectionpool.py:392:


self._send_request(method, url, body, headers, encode_chunked)

C:UsersAdministratorAppDataLocalProgramsPythonPython37libhttpclient.py:1229:


self.putrequest(method, url, skips)

self.endheaders(body, encode_chunked=encode_chunked)

C:UsersAdministratorAppDataLocalProgramsPythonPython37libhttpclient.py:1275:


self._send_output(message_body, encode_chunked=encode_chunked)

C:UsersAdministratorAppDataLocalProgramsPythonPython37libhttpclient.py:1224:


self.send(msg)

C:UsersAdministratorAppDataLocalProgramsPythonPython37libhttpclient.py:1016:


self.connect()

C:UsersAdministratorAppDataLocalProgramsPythonPython37libhttpclient.py:956:


self =

def connect(self):

conn = self._new_conn()

E:Panda_testvenvlibsite-packagesb3connection.py:187:


self =

E:Panda_testvenvlibsite-packagesb3connection.py:172: NewConnectionError

During handling of the above exception, another exception occurred:

self =

def test_2(self):

self.driver.get('https://www.baidu.com')

cases登录模块 est_登录.py:32:



if new_retry.is_exhausted():

Process finished with exit code 0

今天的文章 python由于目标计算机积极拒绝 无法连接(selenium由于目标计算机积极拒绝,无法连接)分享到此就结束了,感谢您的阅读。
编程小号
上一篇 2026-02-26 17:40
下一篇 2025-08-02 23:27

相关推荐

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
如需转载请保留出处:https://bianchenghao.cn/bian-cheng-ri-ji/48801.html