03 Jun 2024 08:49 PM - last edited on 04 Jun 2024 08:00 AM by MaciejNeumann
Hi ,
i am trying to deploy a test app following the documentation - https://{environmentid}.apps.dynatrace.com
fyi.. support recommended to use specific version instead of latest, as i am running into an issue 'ECONNRESET',
while starting the app "npm run start" running into following error. seems like node js connectivity issue, can someone please help me on how to fix this
Error: Could not resolve the SSO-URL for 'https://{environmentid}.apps.dynatrace.com'
Http(s) request failed: self-signed certificate in certificate chain
Following are the Trouble shooting steps that i did - https://{environmentid}.apps.dynatrace.com/
HTTP/1.1 200 Connection established
HTTP/1.1 401 Unauthorized
____________
curl -I https://{environmentid}.apps.dynatrace.com/platform/oauth2/authorization/dynatrace-sso
HTTP/1.1 200 Connection established
HTTP/1.1 302 Found
____________
node -e "fetch('https://sso.dynatrace.com').then(console.log)"
node:internal/deps/undici/undici:12502
Error.captureStackTrace(err, this);
^
TypeError: fetch failed
at node:internal/deps/undici/undici:12502:13
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
[cause]: Error: self-signed certificate in certificate chain
at TLSSocket.onConnectSecure (node:_tls_wrap:1674:34)
at TLSSocket.emit (node:events:519:28)
at TLSSocket._finishInit (node:_tls_wrap:1085:8)
at ssl.onhandshakedone (node:_tls_wrap:871:12) {
code: 'SELF_SIGNED_CERT_IN_CHAIN'
}
}
Node.js v20.14.0
running on macOS
Solved! Go to Solution.
03 Jun 2024 08:53 PM
Fyi.. i do have Proxy server in place
03 Jun 2024 09:33 PM
export org CA cert resolved node connectivity issues
#CA CERT
export NODE_EXTRA_CA_CERTS=/Users/xxxxx/.ssh/org-proxy-chain.pem