# 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:** 10\
**Page:** 1

<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 13, 2023, 7:06pm UTC](https://community.dynatrace.com/t/sso-url-error-when-starting-the-dev-server/38426/1 "2023-02-13T19:06:25Z")

</div>

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](https://global.discourse-cdn.com/dynatrace/original/3X/4/d/4dc37c4c64f7c893a6e08a3dd187473d5b301801.png)

OS: Windows

Node version: 16.16.0

npm version: 8.11.0

dtp-cli version: 0.88.0

---

<div class="post-metadata">

**Author:** ![stefan\_eggersto](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/stefan_eggersto/32/34114_2.png) [@stefan\_eggersto](https://community.dynatrace.com/u/stefan_eggersto)\
**Post date:** [February 14, 2023, 6:57am UTC](https://community.dynatrace.com/t/sso-url-error-when-starting-the-dev-server/38426/2 "2023-02-14T06:57:18Z")

</div>

Hi,

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

---

<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 14, 2023, 7:58pm UTC](https://community.dynatrace.com/t/sso-url-error-when-starting-the-dev-server/38426/3 "2023-02-14T19:58:22Z")

</div>

Thanks Stefan.

The environmentalUrl&nbsp; follows the pattern you mentioned.

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

---

<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, 8:45pm UTC](https://community.dynatrace.com/t/sso-url-error-when-starting-the-dev-server/38426/4 "2023-02-16T20:45:04Z")

</div>

Hi,

The SSO-URL error pops up again today.

---

<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.

---

<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 17, 2023, 2:14pm UTC](https://community.dynatrace.com/t/sso-url-error-when-starting-the-dev-server/38426/6 "2023-02-17T14:14:09Z")

</div>

Thanks all.

We found out it may be a company proxy issue.

---

<div class="post-metadata">

**Author:** ![heramb\_sawant](https://avatars.discourse-cdn.com/v4/letter/h/c4cdca/32.png) [@heramb\_sawant](https://community.dynatrace.com/u/heramb_sawant)\
**Post date:** [July 18, 2023, 2:00pm UTC](https://community.dynatrace.com/t/sso-url-error-when-starting-the-dev-server/38426/7 "2023-07-18T14:00:45Z")

</div>

Hey,  
We are facing the same issue, could you please guide us how to&nbsp; fix proxy issue?

Error :-&nbsp;  
Authenticating…Error: Could not resolve the SSO-URL for

Regards,  
Heramb

---

<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:** [July 18, 2023, 9:23pm UTC](https://community.dynatrace.com/t/sso-url-error-when-starting-the-dev-server/38426/8 "2023-07-18T21:23:31Z")

</div>

Hey&nbsp;[@heramb\_sawant](https://community.dynatrace.com/user/46340)&nbsp;,

We set the proxy at the machine that run the app for development.

```markup
export HTTP_PROXY=<your proxy>
export HTTPS_PROXY=<your proxy>

```

---

<div class="post-metadata">

**Author:** ![DD\_Developer](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@DD\_Developer](https://community.dynatrace.com/u/DD_Developer)\
**Post date:** [April 25, 2024, 6:16pm UTC](https://community.dynatrace.com/t/sso-url-error-when-starting-the-dev-server/38426/9 "2024-04-25T18:16:41Z")

</div>

[@StephenLHChan](https://community.dynatrace.com/user/59527)&nbsp;,

Where do I need to set this values?

```auto
export HTTP_PROXY=<your proxy>
export HTTPS_PROXY=<your proxy>

```

```auto
export HTTP_PROXY=<your proxy>
export HTTPS_PROXY=<your proxy>

```

---

<div class="post-metadata">

**Author:** ![36Krazyfists](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/36krazyfists/32/37434_2.png) [@36Krazyfists](https://community.dynatrace.com/u/36Krazyfists)\
**Post date:** [July 5, 2024, 9:12pm UTC](https://community.dynatrace.com/t/sso-url-error-when-starting-the-dev-server/38426/10 "2024-07-05T21:12:17Z")

</div>

You ever figure it out?
