# Unable to start dev server - 404 logging into environment

**URL:** <https://community.dynatrace.com/t/unable-to-start-dev-server-404-logging-into-environment/40872>\
**Category:** Developer Q&A Forum\
**Tags:** dynatrace-app-toolkit, custom-app\
**Created:** [July 26, 2023, 8:48am UTC](https://community.dynatrace.com/t/unable-to-start-dev-server-404-logging-into-environment/40872 "2023-07-26T08:48:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![david-madl](https://avatars.discourse-cdn.com/v4/letter/d/f6c823/32.png) [@david-madl](https://community.dynatrace.com/u/david-madl)\
**Post date:** [July 26, 2023, 8:48am UTC](https://community.dynatrace.com/t/unable-to-start-dev-server-404-logging-into-environment/40872/1 "2023-07-26T08:48:58Z")

</div>

Hi Dynatrace Community,

While working through the Dynatrace App Quickstart [1] guide, I am having trouble starting the local development server.

When running `npm run start`, a browser opens at `https://{environmentid}.live.dynatrace.com/oauth2/authorize?client\_id=&redirect\_uri=http%3A%2F%2Flocalhost%3A5343%2Fauth%2Flogin&state=fbce8e20ab88c4d3056fa750cecf185cdf44fcbb&response\_type=code&code\_challenge\_method=S256&code\_challenge=OLyXd6OhIcSKERaTeGmbx4rcHepytgq\_Z4z-hxUGwps&scope=storage%3Alogs%3Aread%20storage%3Abuckets%3Aread%20app-engine%3Aapps%3Ainstall%20app-engine%3Aapps%3Arun%20app-engine%3Aapps%3Adelete

Error page details:

Error details – 404 not found  
26.07.2023 at 08:20:34 AM GMT | Ref. ID: JS-2-D8E5WGRLBIKE  
Version: 1.271.95.20230718-153759

[1]:&nbsp;[First app in 5 minutes | Dynatrace Developer](https://developer.dynatrace.com/getting-started/quickstart/)

---

<div class="post-metadata">

**Author:** ![sinisa\_zubic](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sinisa_zubic/32/32498_2.png) [@sinisa\_zubic](https://community.dynatrace.com/u/sinisa_zubic)\
**Post date:** [July 26, 2023, 11:02am UTC](https://community.dynatrace.com/t/unable-to-start-dev-server-404-logging-into-environment/40872/2 "2023-07-26T11:02:39Z")

</div>

Hi&nbsp;[@david-madl](https://community.dynatrace.com/user/64429)

It looks like you are using the wrong environment url. Can you please go to the app.config.ts file and replace the .live.dynatrace.com with .apps.dynatrace.com and try again?

Best,  
Sini

---

<div class="post-metadata">

**Author:** ![david-madl](https://avatars.discourse-cdn.com/v4/letter/d/f6c823/32.png) [@david-madl](https://community.dynatrace.com/u/david-madl)\
**Post date:** [July 26, 2023, 11:05am UTC](https://community.dynatrace.com/t/unable-to-start-dev-server-404-logging-into-environment/40872/3 "2023-07-26T11:05:26Z")

</div>

Thank you Sini, works like a charm!

---

<div class="post-metadata">

**Author:** ![david-madl](https://avatars.discourse-cdn.com/v4/letter/d/f6c823/32.png) [@david-madl](https://community.dynatrace.com/u/david-madl)\
**Post date:** [July 26, 2023, 11:08am UTC](https://community.dynatrace.com/t/unable-to-start-dev-server-404-logging-into-environment/40872/4 "2023-07-26T11:08:55Z")

</div>

Just an idea:

Maybe you could add a correct URL example to the page [1], or give the “environment url” some other name, maybe “app environment url”, to distinguish it?

Best,  
David

[1]&nbsp;[First app in 5 minutes | Dynatrace Developer](https://developer.dynatrace.com/getting-started/quickstart/)

---

<div class="post-metadata">

**Author:** ![sinisa\_zubic](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sinisa_zubic/32/32498_2.png) [@sinisa\_zubic](https://community.dynatrace.com/u/sinisa_zubic)\
**Post date:** [July 26, 2023, 11:18am UTC](https://community.dynatrace.com/t/unable-to-start-dev-server-404-logging-into-environment/40872/5 "2023-07-26T11:18:22Z")

</div>

Thx for the idea.

The one thing we already have available in Dynatrace developer is your environment context. In the top right corner, you have a “login” button. After you’re logged in, the “create” command is pre-filled with your environment URL

 ![sinisa_zubic_0-1690370265816.png](https://global.discourse-cdn.com/dynatrace/original/3X/3/b/3bd4bb90325785cbce5757b51f03719c673bd5d2.png)

Best,  
Sini
