Connected to VPN: Postman runner works fine and shows results but when I execute the same by Newman it throws error.
Disconnect VPN: Newman runner now works fine with same command and collection but this time those 2 APIs which require VPN fails.
How can i solve this network issue causing newman to fail.
Error newman throws is
[errored]
connect ECONNREFUSED ipaddress:443
11⠄ JSONError in test-script
I had to setup HTTP proxy before giving the Newman run command and it worked.
HTTP_PROXY='Give URL:PORT NUMBER' newman run file.json