13 Feb 2023 07:06 PM - last edited on 02 May 2023 02:42 PM by educampver
Hey,
We are running into an issue with starting the development server. The node/npm dependencies, create app are all fine. But, when running "npm run start" to start the development server, the following error showed.
OS: Windows
Node version: 16.16.0
npm version: 8.11.0
dtp-cli version: 0.88.0
Solved! Go to Solution.
14 Feb 2023 06:57 AM - last edited on 28 Oct 2024 01:49 PM by Michal_Gebacki
Hi,
this might be caused by a wrongenvironmentUrl
in dtp.config.ts
. Can you please ensure the value of environmentUrl follows the pattern https://<environment-id>.apps.dynatrace.com,
e.g. environmentUrl: "https://abc123.apps.dynatrace.com "
?
14 Feb 2023 07:58 PM
Thanks Stefan.
The environmentalUrl follows the pattern you mentioned.
I did not change anything. But, it works now.
16 Feb 2023 08:45 PM
Hi,
The SSO-URL error pops up again today.
16 Feb 2023 09:43 PM - last edited on 19 Apr 2023 09:25 AM by educampver
Fail case:
2023-02-16T11:59:33.777Z INFO DTP-CLI: Started local development server
2023-02-16T11:59:35.486Z DEBUG [AUTH] Retrieving SSO-URL for environment 'https://{environmentid}.apps.dynatrace.com'
2023-02-16T11:59:35.486Z DEBUG [HTTP(S)] Execute GET request without allowing redirection to 'https://{environmentid}.apps.dynatrace.com/platform/oauth2/authorization/dynatrace-sso'
2023-02-16T11:59:35.487Z DEBUG [undefined] Tracing request https://{environmentid}.apps.dynatrace.com/platform/oauth2/authorization/dynatrace-sso
2023-02-16T11:59:35.921Z DEBUG [BUILD_TIME] Built in 149ms.
2023-02-16T11:59:56.657Z DEBUG [AUTH] Could not resolve the SSO-URL for 'https://{environmentid}.apps.dynatrace.com'
2023-02-16T11:59:56.658Z DEBUG [AUTH] Error: Http(s) request failed: connect ETIMEDOUT 54.89.223.247:443
2023-02-16T11:59:56.663Z ERROR Runtime error: Uncaught exception
2023-02-16T12:00:18.568Z DEBUG [BUILD_TIME] Built in 42802ms.
2023-02-16T12:00:18.569Z INFO Reloading browser
2023-02-16T12:00:18.572Z ERROR Error: Could not resolve the SSO-URL for 'https://{environmentid}.apps.dynatrace.com'
Http(s) request failed: connect ETIMEDOUT 54.89.223.247:443
Successful case:
2023-02-14T10:46:33.845Z INFO DTP-CLI: Started local development server
2023-02-14T10:46:34.656Z DEBUG [AUTH] Retrieving SSO-URL for environment 'https://{environmentid}.apps.dynatrace.com'
2023-02-14T10:46:34.656Z DEBUG [HTTP(S)] Execute GET request without allowing redirection to 'https://{environmentid}.apps.dynatrace.com/platform/oauth2/authorization/dynatrace-sso'
2023-02-14T10:46:34.656Z DEBUG [undefined] Tracing request https://{environmentid}.apps.dynatrace.com/platform/oauth2/authorization/dynatrace-sso
2023-02-14T10:46:35.094Z DEBUG [HTTP(S)] Resolved URL is https://{environmentid}.apps.dynatrace.com/platform/login/oauth2/code/dynatrace-sso&nonce=xxxxxx&code_challenge_method=S256&code_challenge=xxxxxx
2023-02-14T10:46:35.094Z DEBUG [AUTH] Using SSO-URL 'https://{environmentid}.apps.dynatrace.com/platform/app-engine/registry/v0.1/app.default.csp.json
2023-02-14T10:47:09.298Z DEBUG [BUILD_TIME] Built in 34481ms.
2023-02-14T10:47:09.304Z INFO Reloading browser
2023-02-14T10:47:09.324Z INFO
────────────────────────────────────────────────────────────────────────────────
App Shell URL: https://{environmentid}.apps.dynatrace.com/ui/apps/local-dev-server/?locationAppIds=http%3A%2F%2Flocalhost%3A3000%2Fui%2Clocal-dev-server
Local URL: http://localhost:3000/ui
Ready for development!
────────────────────────────────────────────────────────────────────────────────
I saw there is a line "Resolved URL" in the successful case while it can't be found in the fail case.
@michael_taylor This is the case I shared in Wednesday 10:30 session. The SSO-URL error happens again today.
17 Feb 2023 02:14 PM
Thanks all.
We found out it may be a company proxy issue.
18 Jul 2023 03:00 PM
Hey,
We are facing the same issue, could you please guide us how to fix proxy issue?
Error :-
Authenticating...Error: Could not resolve the SSO-URL for
Regards,
Heramb
18 Jul 2023 10:23 PM
Hey @heramb_sawant ,
We set the proxy at the machine that run the app for development.
export HTTP_PROXY=<your proxy>
export HTTPS_PROXY=<your proxy>
25 Apr 2024 07:16 PM - edited 25 Apr 2024 07:17 PM
Where do I need to set this values?
export HTTP_PROXY=<your proxy> export HTTPS_PROXY=<your proxy>
export HTTP_PROXY=<your proxy> export HTTPS_PROXY=<your proxy>
05 Jul 2024 10:12 PM
You ever figure it out?