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

SSO-URL error when starting the dev server

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.

StephenLHChan_0-1676314740822.png

 

OS: Windows

Node version: 16.16.0

npm version: 8.11.0

dtp-cli version: 0.88.0

7 REPLIES 7

stefan_eggersto
Dynatrace Mentor
Dynatrace Mentor

Hi,

this might be caused by a wrongenvironmentUrlin 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"?

Thanks Stefan. 

The environmentalUrl  follows the pattern you mentioned.

I did not change anything. But, it works now.

Hi,

The SSO-URL error pops up again today.

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.

Thanks all.

We found out it may be a company proxy issue. 

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



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>

Featured Posts