# SSO-URL error when starting the dev server

**URL:** <https://community.dynatrace.com/t/sso-url-error-when-starting-the-dev-server/38426>\
**Category:** Developer Q&A Forum\
**Tags:** dynatrace-app-toolkit, custom-app\
**Created:** [February 13, 2023, 7:06pm UTC](https://community.dynatrace.com/t/sso-url-error-when-starting-the-dev-server/38426 "2023-02-13T19:06:25Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![StephenLHChan](https://avatars.discourse-cdn.com/v4/letter/s/c4cdca/32.png) [@StephenLHChan](https://community.dynatrace.com/u/StephenLHChan)\
**Post date:** [February 16, 2023, 9:43pm UTC](https://community.dynatrace.com/t/sso-url-error-when-starting-the-dev-server/38426/5 "2023-02-16T21:43:46Z")

</div>

Fail case:

```python
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:

```python
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](https://community.dynatrace.com/user/188)&nbsp;This is the case I shared in Wednesday 10:30 session. The SSO-URL error happens again today.

---

_[View the full topic](https://community.dynatrace.com/t/sso-url-error-when-starting-the-dev-server/38426)._
