TypeError: Cannot read properties of undefined (reading '_destroySSL')

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.

Hi There,

I have the following warning in Postman: “Warning: Self signed certificate in certificate chain” and the response is accepted and test passed.

But the test failed in newman in Azure Devops pipeline.
newman v4.3.0
Node.js v20.11.1

response has {undefined} Response body'
node:_tls_wrap:773
  self._destroySSL();
       ^
TypeError: Cannot read properties of undefined (reading '_destroySSL')
    at Timeout.destroySSL [as _onTimeout] (node:_tls_wrap:773:8)
    at listOnTimeout (node:internal/timers:573:17)
    at process.processTimers (node:internal/timers:514:7)

Any idea how to fix it?

Hey @michaelpeng00 :waving_hand:

Welcome to the Postman Community! :postman:

Does the request work on Newman if you use the -k or --insecure flag?

Your Newman version is also 2 major versions behind the latest one so that also could be the issue.

Hi Danny,

I have tried to put insecure flag in the .run file but got the same error.

newman.run({
        insecure: true }

Might consider upgrade Newman to see if it goes away.