# VsCode extension enviornment URL error

**URL:** <https://community.dynatrace.com/t/vscode-extension-enviornment-url-error/45306>\
**Category:** Extensions\
**Tags:** databases, extensions\
**Created:** [April 25, 2024, 8:42pm UTC](https://community.dynatrace.com/t/vscode-extension-enviornment-url-error/45306 "2024-04-25T20:42:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![trevordconsult](https://avatars.discourse-cdn.com/v4/letter/t/e9c0ed/32.png) [@trevordconsult](https://community.dynatrace.com/u/trevordconsult)\
**Post date:** [April 25, 2024, 8:42pm UTC](https://community.dynatrace.com/t/vscode-extension-enviornment-url-error/45306/1 "2024-04-25T20:42:44Z")

</div>

Hey All, I am trying to add a Dynatrace Extension to my Dynatrace Managed environment. Every time I try to add the URL. I get “The environment URL is not reachable” and “Unable to verify first certificate.” Has anyone encountered this before and does any know how to help. Will I still be able to use the vscode extension to help me or will i have to soley use the cli with the flag of "--no-check-certificate " I have also attached the logs. Let me know what you all think.

 ![trevoraccenture_1-1714077735044.png](https://global.discourse-cdn.com/dynatrace/original/3X/4/9/4929e0dc8d418a80480cb9aea99ea252af922d11.png)

---

<div class="post-metadata">

**Author:** ![DavidMass](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/davidmass/32/9065_2.png) [@DavidMass](https://community.dynatrace.com/u/DavidMass)\
**Post date:** [April 25, 2024, 8:49pm UTC](https://community.dynatrace.com/t/vscode-extension-enviornment-url-error/45306/2 "2024-04-25T20:49:44Z")

</div>

Hi&nbsp;[@trevordconsult](https://community.dynatrace.com/user/75089)&nbsp;,&nbsp;  
Please take a look at this GitHub issue that was recently closed that may help :&nbsp;

> <https://github.com/dynatrace-extensions/dynatrace-extensions-vscode/issues/192#issuecomment-2074184818>
>
> \*\*Summary\*\*
> Many Dynatrace Managed users will have their Dynatrace Managed depl…oyment secured with SSL through either self-signed certificates or certificates which their organization has re-signed after generating. In such cases our Dynatrace API client doesn't see this as a valid certificate and refuses to carry out requests over HTTPS.
> 
> Despite VS Code itself using the O/S trust store and NodeJS allowing for \[\`NODE\_EXTRA\_CA\_CERTS\`\](https://nodejs.org/api/cli.html#cli\_node\_extra\_ca\_certs\_file) environment variable to load additional CA certificates, VS Code extensions it seems do not inherit these settings. Our Axios client should allow for some configuration to compensate for this discrepancy.
> 
> \*\*Current Behavior\*\*
> Dynatrace tenants with HTTPS connections going over self-signed certificates cannot be registered with our extension.
> 
> \*\*Expected Behavior\*\*
> Similar to \`NODE\_EXTRA\_CA\_CERTS\` we should have a simple mechanism (either environment variable or extension setting to load a custom CA file into our axios client).

Thanks,&nbsp;  
David

---

<div class="post-metadata">

**Author:** ![trevordconsult](https://avatars.discourse-cdn.com/v4/letter/t/e9c0ed/32.png) [@trevordconsult](https://community.dynatrace.com/u/trevordconsult)\
**Post date:** [April 25, 2024, 9:02pm UTC](https://community.dynatrace.com/t/vscode-extension-enviornment-url-error/45306/3 "2024-04-25T21:02:05Z")

</div>

I am not sure this is the same thing. I am trying to add the Dynatrace Managed environment, so then I can create a python 2.0 extension. I have not even connected the environment yet.&nbsp; Unless I am just not understanding. Will this work?

---

<div class="post-metadata">

**Author:** ![DavidMass](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/davidmass/32/9065_2.png) [@DavidMass](https://community.dynatrace.com/u/DavidMass)\
**Post date:** [April 25, 2024, 9:15pm UTC](https://community.dynatrace.com/t/vscode-extension-enviornment-url-error/45306/4 "2024-04-25T21:15:06Z")

</div>

Hi&nbsp;[@trevordconsult](https://community.dynatrace.com/user/75089)

Please correct me if I’m wrong but it looks like the error log you posted above is from the Dynatrace Extensions VSCode extension/Add-on :

 ![DavidMass_0-1714079245458.png](https://global.discourse-cdn.com/dynatrace/original/3X/3/2/32b2c00ccef1e668478c2ebeffa2d96786e1c213.png)

If so, then the link to the comment will help you set up that VSCode Add-On to be able to connect to your Dynatrace Environment. The VSCode Add-On has it’s own configuration and you can edit the settings.json file for your VSCode installation to control them.&nbsp; In VSCode if you go to File → Preferences → Settings you can search from Dynatrace and edit the json file.

 ![DavidMass_2-1714079672581.png](https://global.discourse-cdn.com/dynatrace/original/3X/2/b/2b775e292414df25c84de961eb58149ef56be529.png)

If that is indeed the issue, from there you can use this VSCode Add-On to create a Dynatrace Extension (including a Python EF 2.0 one).

---

<div class="post-metadata">

**Author:** ![avinashpodisett](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@avinashpodisett](https://community.dynatrace.com/u/avinashpodisett)\
**Post date:** [July 19, 2024, 7:59pm UTC](https://community.dynatrace.com/t/vscode-extension-enviornment-url-error/45306/5 "2024-07-19T19:59:12Z")

</div>

i am running into same issue as well

i did added tenant connectivity settings&nbsp;  
here is my settings.json file

“https.proxyAuthorization”: true,“dynatraceExtensions.developerCertkeyLocation”: “/Users/lidsc82/Library/Application Support/Code/User/workspaceStorage/a3e208e5a62162e200a539a06a885512/DynatracePlatformExtensions.dynatrace-extensions/certificates/developer.pem”,“dynatraceExtensions.simulator.defaultMetricsIngestion”: true,“dynatraceExtensions.logging.maxFileSize”: 50,“dynatraceExtensions.simulator.defaultLocation”: “REMOTE”,“http.proxyStrictSSL”: false,“workbench.trustedDomains.promptInTrustedWorkspace”: true,“dynatraceExtensions.rootOrCaCertificateLocation”: “/Users/lidsc82/Library/Application Support/Code/User/workspaceStorage/a3e208e5a62162e200a539a06a885512/DynatracePlatformExtensions.dynatrace-extensions/certificates/ca.pem”,“settingsSync.ignoredSettings”: [“-python.pipenvPath”,“-python.venvFolders”],“pythonTestExplorer.testFramework”: “pytest”,“dynatraceExtensions.tenantConnectivitySettings”: [{“tenantUrl”: “[https://dt-managed-notprod](https://dt-managed-notprod).\*\*\*\*\*.com/e/e1fc6b45-c7e7-4329-82c4-ef4b67d8a94f”,“certificatePath”:“/Users/\*\*\*\*\*/Library/Application Support/Code/User/workspaceStorage/a3e208e5a62162e200a539a06a885512/DynatracePlatformExtensions.dynatrace-extensions/certificates/ca.pem”}],“gitlens.gitCommands.skipConfirmations”: [“fetch:command”,“stash-push:command”,“switch:command”],“dynatraceExtensions.logging.level”: “DEBUG”,  
[settings.txt](https://community.dynatrace.com/uploads/short-url/Atjfpht2aKrDei8IrpYoPkOKsdD.txt) (466 Bytes)
