robotframework - 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 转到
C:\Users\You\AppData\Local\Programs\Python\Python38\Lib\site-packages\urllib3
2
查看文件、池管理器、连接池和连接
3把80换成8080
推荐阅读
- r - 示例函数在 ifelse 中重复相同的值
- python - '\python.exe' 中没有 python
- python - 寻找一种在另一个音频中提取匹配音频时间戳的方法
- python - 使用函数在鼠标悬停时设置饼片的新颜色,直到标签长度,而不在列表中单独提供新颜色
- java - org.springframework.beans.factory.UnsatisfiedDependencyException 发生。但我没有改变任何东西
- mysql - AWS MySQL 数据库消失
- virtual-machine - LINQPad“名称 SubmitChanges 不存在”
- ios - 如何实现以下场景,使用 RealityKit 和 RealityComposer 或使用 ARKit 和 SceneKit?
- deep-learning - 词级语言模型的准确率极差,每个 epoch 的训练时间长
- micrometer - micrometer.io 的“NOOPd”是什么意思?