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

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.