Postman Monitoring request error "Error: NETERR: getaddrinfo ENOTFOUND localhost"

Postman Monitoring request error "Error: NETERR: getaddrinfo ENOTFOUND localhost"

我正在尝试弄清楚如何在 Postman 中进行监控。

我已经在桌面客户端上为 get/create/put 编写了测试,一切正常。我正在使用本地主机地址和端口 5004,这是 API.

的端口

http://127.0.0.1:5004/bookings

我曾尝试将设置中的代理更改为本地主机和端口 5004,我已尝试将其更改为 127.0.0.1:5004,我已尝试在桌面客户端上禁用 SSL。我是运行在浏览器上使用桌面客户​​端的监控,也没用。

我还检查了我的 etc/host 文件是否包含 127.0.0.1 localhost,它确实包含。

不确定我还能尝试什么,如果有任何帮助,我将不胜感激。 :)

Accessible APIs:

Monitors require all URLs to be publicly available on the internet as they run in the Postman cloud. A monitor cannot directly access your localhost or run requests behind a firewall. However, to overcome this issue, static IPs are available on Postman Business and Enterprise plans.

https://learning.postman.com/docs/designing-and-developing-your-api/monitoring-your-api/intro-monitors/

您不能将监视器用于内部网站和本地主机网站,您可以升级到企业或商业计划,看看是否有帮助

问题可能是您配置了环境变量并在 URL 中也传递了正确的值

但是在 运行 进行收集测试时 class 没有select正确的环境

Select 配置为 运行 该集合的环境,如所附屏幕截图所示

我遇到了这个问题,问题出在我的 DNS 地址上。更改DNS服务器后解决。

我遇到了同样的问题,我的环境中的 ip 和 :port =>0.0.0.0b:1111 之间有 space。我删除了 space 并且可以连接。 => 0.0.0.0:1111.