node:internal/process/promises:288
triggerUncaughtException(err, true /* fromPromise */);
^
Error: unable to verify the first certificate
at TLSSocket.onConnectSecure (node:_tls_wrap:1550:34)
at TLSSocket.emit (node:events:514:28)
at TLSSocket._finishInit (node:_tls_wrap:967:8)
at ssl.onhandshakedone (node:_tls_wrap:743:12) {
code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE'
}
Node.js v18.17.1
Some links have this error, although it still opens fine in the browser.
Code:
Logs: