【发布时间】:2020-11-19 23:29:12
【问题描述】:
前提条件: 我安装了纽曼。 我的收藏和环境 .json 文件在邮递员中工作正常
问题 当我通过本地计算机上的 powershell 或使用“postman/newman_alpine33”docker 的 CI 运行此命令“newman run collection.json –e env.json”时。
我收到此错误:
POST {{baseUrl}}/api/student/create [errored]
getaddrinfo ENOTFOUND {{baseurl}}
{{baseURL}} 指的是 env.json 中的环境变量,应该在 collection.json 中使用。
注意:我在其他终端上也试过了,问题仍然存在。
【问题讨论】: