I recently updates ssl certificates on my heroku server. I am getting this error when scheduler.js task runs.
I raised ticket on herlu but sadly no response.
stack trace
Error: SELF_SIGNED_CERT_IN_CHAIN at SecurePair.<anonymous> (tls.js:1283:32) at SecurePair.EventEmitter.emit (events.js:92:17) at SecurePair.maybeInitFinished (tls.js:896:10) at CleartextStream.read [as _read] (tls.js:430:15) at CleartextStream.Readable.read (_stream_readable.js:294:10) at EncryptedStream.write [as _write] (tls.js:344:25) at doWrite (_stream_writable.js:211:10) at writeOrBuffer (_stream_writable.js:201:5) at EncryptedStream.Writable.write (_stream_writable.js:172:11) at write (_stream_readable.js:547:24)