I am trying to run a postman collection in Azure pipeline through newman CLI. I am able to access this collection via the browser using colleciton id and postman api key generated. but the same url with collection id and api key, when run through newman CLI in Azure pipeline is throwing error like "Tunneling socket could not be established, cause=getaddrinfo ENOTFOUND ". The postman collection executes an IP 127.0.0.1 which connects to a socketserver and Nginx.
Troubleshooting done:
- Tried addding HTTPS_PROXY and HTTP_PROXY in environment variable in the pipeline task, but issue not resolved. If HTTPS_PROXY and/or HTTP_PROXY is not added in environment variable, then it throws an ECONNREFUSED error for 127.0.0.1
- Disabled "Use system proxy" in Postman settings, as suggested in some of the forums, but that doesn't help either