cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

VS Code - Issues with all 3 Dynatrace extensions - SSO authentication :: Please advise

chris_cho
Contributor

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
  2. [Dynatrace Extensions] extension

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

chris_cho_0-1737165305879.png

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.

chris_cho_0-1737162352619.png

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

chris_cho_1-1737162372064.png

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.

chris_cho_2-1737159761521.png

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>

chris_cho_3-1737157414045.png

Anyway, in the end out of the blue, I got the new workstation working with [Dynatrace Extensions].
chris_cho_5-1737158226807.png

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

4 REPLIES 4

christian_k
Dynatrace Enthusiast
Dynatrace Enthusiast

@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?

Hey @christian_k, I think you linked the wrong Stefan. 

christian_k
Dynatrace Enthusiast
Dynatrace Enthusiast

I'm sorry, and you're right. That's the downside of our cryptic user names here 😉

s_wasserbauer
Dynatrace Helper
Dynatrace Helper

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?

Featured Posts