18 Jan 2025 12:04 AM - edited 18 Jan 2025 04:34 AM
Hello,
I am experiencing authentication/connection issue working in VS Code using the Dynatrace extensions.
I will split these issues in two sections:
1. [Dynatrace Apps] & [Dynatrace Debug] extensions :: Issues
- Workstation with Windows 11
- installed successfully the extension [Dynatrace Apps] v 0.27.0
- I am using nodejs v20.12.2
- attempted to create a Dynatrace custom app
npx dt-app create --environment-url <apps dynatrace url>
after entering the app name I am getting the exception message:
✖ Searching for template repositories...
Error: App Toolkit is not able to fetch the app templates from GitHub.
To be able to create an app, App Toolkit needs to have access to read the app templates from https://github.com/Dynatrace/dt-app-templates
- downloaded the templates from [main] branch, https://github.com/Dynatrace/dt-app-templates, and used the settings from Templates\Default folder
- executed the npm install command, to install the dependencies
- launched the app server by using
npx dt-app dev
I got this message:
✖ Authenticating...
Error: SSO-URL for '<apps dynatrace url>' could not be processed.
self-signed certificate in certificate chain
If you need further assistance visit the connectivity troubleshooting guide here: https://dt-url.net/c4jp0s12
- Set the environment variable: $ENV:NODE_TLS_REJECT_UNAUTHORIZED="0"
- launched locally the application
npx dt-app dev
and the app server finally started on local, but with the following warning and message:
(node:34416) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.
(Use `node --trace-warnings ...` to show where the warning was created)
DT-APP: Started local development server
DT-APP: Authenticate with Dynatrace SSO
The dependencies package update fails, too:
npx dt-app update
However, in VS Code status bar I see [Dynatrace] Not Authenticated.
Clicking on it, a dialog box is opened asking to authenticate to SSO
Clicking on [Allow] button, it doesn't do anything, no exceptions, no messages, no logs.
By using the extension [Dynatrace Debugger] I am experiencing similar authentication SSO issues.
Trying to login through SSO, in the web browser, I am getting back the message
Couldn't log you in
Even trying to create and use .dql files I am asked to authenticate using SSO. Same it doesn't work.
I would like to know what the source of all these issues would be, creating and starting a simple app, which is advertised as being done in 5 minutes. Personally, it took days.
2. [Dynatrace Extensions] extension :: Issues
- installed the VS Code extension [Dynatrace Extensions] 2.6.5
- initially, I was able to configure the environment and initialed the workspace, generating the required certifications.
- I was able to see the defined Dynatrace extensions
I got a new workstation, and wanted to configure the VS Code extension [Dynatrace Extensions]
Started adding an environment providing the URL <apps dynatrace url>.
After pressing the [Enter] key, I got the messages.
unable to get local issuer certificate
The environment URL entered is not reachable.
On the other hand, checking again on the old workstation, I noticed that I cannot use the existing extensions Dynatrace Extensions, getting the notification.
No response from server <apps dynatrace url>
Anyway, in the end out of the blue, I got the new workstation working with [Dynatrace Extensions].
Currently, both application and [Dynatrace Extensions] are working on my new workstation.
Please let me know, if there are any aspects, I have missed setting up my Dynatrace development environment.
Sorry if this message got quite large. I wanted to provide all the details in one message, instead of splitting it through more messages.
Thank you
26 Jan 2025 09:02 PM
@StefanW can you please have a look at this topic and see if you have an idea what causes the error with our VS Code Extension?
27 Jan 2025 07:06 AM
Hey @christian_k, I think you linked the wrong Stefan.
27 Jan 2025 07:18 AM
I'm sorry, and you're right. That's the downside of our cryptic user names here 😉
27 Jan 2025 07:34 AM
Hi @chris_cho !
Did you run through the connectivity troubleshooting? Please, check the guide first for error messages you get when running the troubleshooting guide. Can you post the error messages here please?