HTTPConnectionPool = 80应该是8080

问题描述

我正在尝试使用ZapLibrary(https://github.com/airesv/robotframework-zaplibrary) 并且在运行我的RobotFrameWork测试时尝试连接到port = 80

在Zap中时,我的 localhost:8080 (因此它在端口8080上运行)

如何更改或设置它以尝试访问端口8080

ProxyError: httpconnectionPool(host='localhost',port=80): Max retries exceeded with url: http://zap/JSON/core/action/shutdown/?apikey=d9i7specimen (Caused by ProxyError('Cannot connect to proxy.',NewConnectionError('<urllib3.connection.httpconnection object at 0x00000193028DF070>: Failed to establish a new connection: [WinError 10061] Kan geen verbinding maken omdat de doelcomputer de verbinding actief heeft geweigerd')))

解决方法

1 goto
C:\ Users \ You \ AppData \ Local \ Programs \ Python \ Python38 \ Lib \ site-packages \ urllib3

2

查看文件, 泳池经理 连接池 和,连接

3 在8080中更改80