03 Jun 2024 11:15 PM - last edited on 12 Aug 2024 07:39 AM by Michal_Gebacki
15 Jun 2024 07:31 PM
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