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

Adding environment URL to Dynatrace extension

avinashpodisett
Frequent Guest
Getting following error while adding environment to Dynatrace extension in VScode.. i am on MacOS 
 
here is the documentation, that i am following
 
 
 
 [ERROR][utils.conditionCheckers.checkUrlReachable] {"message":"Request failed with status code 400","name":"AxiosError","stack":"AxiosError: Request failed with status code 400\n at Ba (/Users/lidsc82/.vscode/extensions/dynatraceplatformextensions.dynatrace-extensions-2.6.1-darwin-x64/out/main.js:185:1040)\n at IncomingMessage.<anonymous> (/Users/lidsc82/.vscode/extensions/dynatraceplatformextensions.dynatrace-extensions-2.6.1-darwin-x64/out/main.js:186:8709)\n at IncomingMessage.emit (node:events:529:35)\n at endReadableNT (node:internal/streams/readable:1368:12)\n at processTicksAndRejections (node:internal/process/task_queues:82:21)","config":{"transitional":{"silentJSONParsing":true,"forcedJSONParsing":true,"clarifyTimeoutError":false},"adapter":["xhr","http"],"transformRequest":[null],"transformResponse":[null],"timeout":0,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-1,"env":{},"headers":{"Accept":"application/json, text/plain, */*","User-Agent":"axios/1.6.3","Accept-Encoding":"gzip, compress, deflate, br"},"maxRedirects":20,"method":"get","url":"https://dt-managed-notprod.highmark.com/e/e1fc6b45-c7e7-4329-82c4-ef4b67d8a94f/api/v1/time"},"code":"ERR_BAD_REQUEST","status":400}
1 REPLY 1

gusmazeikis
Observer

In my case I'm receiving an HTTP 503 code as an answer, when the dynatrace extension asks for the /api/v1/time.

On the other hand If I ask for the same URL via curl I have no problems. ( curl -v  https://<my.domain>/e/<my.environment>/api/v1/time

I appreciate some help with this blocking problem.

VSCode Version: 1.90.0 (user setup)
Commit: 89de5a8d4d6205e5b11647eb6a74844ca23d2573
Date: 2024-06-04T19:33:54.889Z
Electron: 29.4.0
ElectronBuildId: 9593362
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Windows_NT x64 10.0.19045

 

 2024-06-15T17:49:43.737Z [DEBUG][] Using secure connection for URL https://<my.domain>/e/<my.environment>

2024-06-15T17:49:43.771Z [ERROR][utils.conditionCheckers.checkUrlReachable] {

"message":"Request failed with status code 503" 

at Ba (c:\\Users\\<my.user>\\.vscode\\extensions\\dynatraceplatformextensions.dynatrace-extensions-2.6.1-win32--x64\\out\\main.js:185:1040)\n\tx64\\out\\main.js:185:1040)\n\t

at IncomingMessage.<anonymous> (c:\\Users\\<my.user>\\.vscode\\extensions\\dynatraceplatformextensions.dynatrace-extensions-2.6.1-win32-x64\\out\\main.js:186:8709)\n\t

at IncomingMessage.emit (node:events:526:35)\n\tat endReadableNT (node:internal/streams/readable:1408:12)\n\t

at process.processTicksAndRejections (node:internal/process/task_queues:82:21)",

"config":{"transitional":{"silentJSONParsing":true,"forcedJSONParsing":true,"clarifyTimeoutError":false},
"adapter":["xhr","http"],
"transformRequest":[null],
"transformResponse":[null],
"timeout":0,
"xsrfCookieName":"XSRF-TOKEN",
"xsrfHeaderName":"X-XSRF-TOKEN",
"maxContentLength":-1,"maxBodyLength":-1,
"env":{},
"headers":{"Accept":"application/json, text/plain,
*/*","User-Agent":"axios/1.6.3",
"Accept-Encoding":"gzip, compress, deflate, br"},
"maxRedirects":20,
"method":"get",
"url":"https://<my.domain>/e/<my.environment>/api/v1/time"},
"code":"ERR_BAD_RESPONSE","status":503}

2024-06-15T17:49:43.773Z [INFO][utils.conditionCheckers.checkUrlReachable] Is URL https://<my.domain>/e/<my.environment>/api/v1/time reachable? false
2024-06-15T17:49:49.374Z [ERROR][treeViews.commands.environments.addEnvironment] The environment URL entered is not reachable.
2024-06-15T17:49:50.463Z [ERROR][utils.conditionCheckers.checkUrlReachable] Request failed with status code 503

 

 

 

 

 

 

 

Featured Posts