Newman gives "read ECONNRESET", but Postman works fine

Archived topic — this may be out of date.
Newman has been replaced by the Postman CLI, Postman’s official, signed command-line tool. It runs collections as Newman did, and also lints API specs, runs mocks and monitors, and syncs local files with Postman from your terminal, CI/CD pipeline or coding agent.
Working with an AI coding agent? The Postman plugin lets agents in Claude Code, Cursor, Codex and others design, mock, test and ship APIs with Postman.
For current help, see the Postman docs, try the free Postman tools (no account needed), or join us on Discord.

I have a collection that runs against an AWS APIGateway endpoint. Within Postman the requests work great. But when I run the requests using newman, I get this

  #  failure         detail

 1.  Error
                     read ECONNRESET
                     at request
                     inside "AccountLookup PUB"

 2.  AssertionError  Status code is 200
                     expected { Object (id, _details, ...) } to have property 'code'
                     at assertion:0 in test-script
                     inside "AccountLookup PUB"

What is happening here?

I am too facing with the same issue. Check whether you are able to ping the site URL you are using in the postman collection from the command prompt. Eg.ping www.postman.com.
If you get request time out there might be proxy issue. Which is preventing access to internet or it is not going via Proxy. if you are using proxy set the proxy in the environment variables as HTTPS_PROXY= PROXY VALUE