# Failed to start App due to error "Client network socket disconnected before secure TLS connection was established"

**URL:** <https://community.dynatrace.com/t/failed-to-start-app-due-to-error-client-network-socket-disconnected-before-secure-tls-connection-was-established/49571>\
**Category:** Developer Q&A Forum\
**Tags:** custom-app\
**Created:** [January 4, 2025, 6:43am UTC](https://community.dynatrace.com/t/failed-to-start-app-due-to-error-client-network-socket-disconnected-before-secure-tls-connection-was-established/49571 "2025-01-04T06:43:12Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![paulli](https://avatars.discourse-cdn.com/v4/letter/p/3bc359/32.png) [@paulli](https://community.dynatrace.com/u/paulli)\
**Post date:** [January 4, 2025, 6:43am UTC](https://community.dynatrace.com/t/failed-to-start-app-due-to-error-client-network-socket-disconnected-before-secure-tls-connection-was-established/49571/1 "2025-01-04T06:43:12Z")

</div>

I tried to set up my first Dynatrace app by following this instruction&nbsp;[First app in 5 minutes | Dynatrace Developer](https://developer.dynatrace.com/quickstart/first-app-in-5-minutes/)&nbsp;but got “Client network socket disconnected before secure TLS connection was established” when starting the App.

$Env:NODE\_TLS\_REJECT\_UNAUTHORIZED=‘0’; & npm run start

\> [edi-platform-web-app@0.0.0](mailto:edi-platform-web-app@0.0.0) start  
\> dt-app dev

(node:10800) Warning: Setting the NODE\_TLS\_REJECT\_UNAUTHORIZED environment variable to ‘0’ makes TLS connections and HTTPS requests insecure by disabling certificate verification.  
(Use `node --trace-warnings …` to show where the warning was created)  
DT-APP: Authenticate with Dynatrace SSO

Warning ──────────────────────────────────────────────────────────────────────────────────

Failed to retrieve user details. App functions will use placeholder data.

──────────────────────────────────────────────────────────────────────────────────────────

DT-APP: Started local development server  
Initial ui build finished successfully.  
× Authenticating…  
FetchError: request to [Login | Dynatrace](https://sso.dynatrace.com/oauth2/authorize?client_id=dt0s08.dt-app-local&redirect_uri=http%3A%2F%2Flocalhost%3A5343%2Fauth%2Flogin&state=b31f8c232b69af33d8e10026084d61d&response_type=code&code_challenge_method=S256&code_challenge=rI0ZrHcC0gug&scope=app-engine%3Aapps%3Arun%20storage%3Alogs%3Aread%20storage%3Abuckets%3Aread) failed, reason: **Client network socket disconnected before secure TLS connection was established**

---

_[View the full topic](https://community.dynatrace.com/t/failed-to-start-app-due-to-error-client-network-socket-disconnected-before-secure-tls-connection-was-established/49571)._
