17 Jun 2024 07:47 PM
I was trying to follow the Sample App creation document Five minutes to your first app | Dynatrace Developer.
Getting error while running npx dt-app@latest create --environment-url <URL>
Searching for template repositories...Error reading repository archive: TypeError: fetch failed
at node:internal/deps/undici/undici:12618:11
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) ause: Error: self-signed certificate in certificate chain
at TLSSocket.onConnectSecure (node:_tls_wrap:1659:34)
at TLSSocket.emit (node:events:517:28)
at TLSSocket._finishInit (node:_tls_wrap:1070:8)
at ssl.onhandshakedone (node:_tls_wrap:856:12) {
code: 'SELF_SIGNED_CERT_IN_CHAIN'
Solved! Go to Solution.
19 Jun 2024 10:06 AM
Hi @Sachinpai
Maybe there is somewhere a firewall in place which does SSL termination and therefore you are getting this error.
To disable ssl check you can do following
on Windows (powershell), run following command
$Env:NODE_TLS_REJECT_UNAUTHORIZED='0'; & npx dt-app@latest create
On Linux/unix, run following command:
NODE_TLS_REJECT_UNAUTHORIZED='0' npx dt-app@latest create
Please let me know if this has solved your issue
Best,
Sini
20 Jun 2024 02:43 PM
Thanks @sinisa_zubic . Solution worked.