# Client Error Socket Disconnected

**URL:** <https://community.prismic.io/t/client-error-socket-disconnected/10492>\
**Category:** Developing with Prismic\
**Tags:** svelte\
**Created:** [July 2, 2022, 12:38pm UTC](https://community.prismic.io/t/client-error-socket-disconnected/10492 "2022-07-02T12:38:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![luxurybalirentals](https://avatars.discourse-cdn.com/v4/letter/l/9de053/32.png) [@luxurybalirentals](https://community.prismic.io/u/luxurybalirentals)\
**Post date:** [July 2, 2022, 12:38pm UTC](https://community.prismic.io/t/client-error-socket-disconnected/10492/1 "2022-07-02T12:38:41Z")

</div>

![image](https://europe1.discourse-cdn.com/flex013/uploads/prismic/original/2X/f/f497a760c5062e21d707b5c34d74369a70a59092.png)  
Sometimes when i open my website in netlify i get this error in netlify functions

---

<div class="post-metadata">

**Author:** ![luxurybalirentals](https://avatars.discourse-cdn.com/v4/letter/l/9de053/32.png) [@luxurybalirentals](https://community.prismic.io/u/luxurybalirentals)\
**Post date:** [July 2, 2022, 12:39pm UTC](https://community.prismic.io/t/client-error-socket-disconnected/10492/2 "2022-07-02T12:39:23Z")

</div>

{"errorType":"Runtime.UnhandledPromiseRejection","errorMessage":"FetchError: request to [https://luxurybali.cdn.prismic.io/api/v2?access\_token=MC5ZZ0VvSlJFQUFDZ0FYWTh3.F--\_vUle77-9EgwrCjgADg4k77-9RO-\_ve-\_vQPvv73vv73vv73vv70V77-977-9IO-\_ve-\_ve-\_ve-\_ve-\_vQ](https://luxurybali.cdn.prismic.io/api/v2?access_token=MC5ZZ0VvSlJFQUFDZ0FYWTh3.F--_vUle77-9EgwrCjgADg4k77-9RO-_ve-_vQPvv73vv73vv73vv70V77-977-9IO-_ve-_ve-_ve-_ve-_vQ) failed, reason: Client network socket disconnected before secure TLS connection was established","reason":{"errorType":"FetchError","errorMessage":"request to [https://luxurybali.cdn.prismic.io/api/v2?access\_token=MC5ZZ0VvSlJFQUFDZ0FYWTh3.F--\_vUle77-9EgwrCjgADg4k77-9RO-\_ve-\_vQPvv73vv73vv73vv70V77-977-9IO-\_ve-\_ve-\_ve-\_ve-\_vQ](https://luxurybali.cdn.prismic.io/api/v2?access_token=MC5ZZ0VvSlJFQUFDZ0FYWTh3.F--_vUle77-9EgwrCjgADg4k77-9RO-_ve-_vQPvv73vv73vv73vv70V77-977-9IO-_ve-_ve-_ve-_ve-_vQ) failed, reason: Client network socket disconnected before secure TLS connection was established","code":"ECONNRESET","type":"system","errno":"ECONNRESET","stack":["FetchError: request to [https://luxurybali.cdn.prismic.io/api/v2?access\_token=MC5ZZ0VvSlJFQUFDZ0FYWTh3.F--\_vUle77-9EgwrCjgADg4k77-9RO-\_ve-\_vQPvv73vv73vv73vv70V77-977-9IO-\_ve-\_ve-\_ve-\_ve-\_vQ](https://luxurybali.cdn.prismic.io/api/v2?access_token=MC5ZZ0VvSlJFQUFDZ0FYWTh3.F--_vUle77-9EgwrCjgADg4k77-9RO-_ve-_vQPvv73vv73vv73vv70V77-977-9IO-_ve-_ve-_ve-_ve-_vQ) failed, reason: Client network socket disconnected before secure TLS connection was established"," at ClientRequest. (/var/task/.netlify/shims.js:6257:11)"," at ClientRequest.emit (events.js:400:28)"," at TLSSocket.socketErrorListener (\_http\_client.js:475:9)"," at TLSSocket.emit (events.js:400:28)"," at emitErrorNT (internal/streams/destroy.js:106:8)"," at emitErrorCloseNT (internal/streams/destroy.js:74:3)"," at processTicksAndRejections (internal/process/task\_queues.js:82:21)"]},"promise":{},"stack":["Runtime.UnhandledPromiseRejection: FetchError: request to [https://luxurybali.cdn.prismic.io/api/v2?access\_token=MC5ZZ0VvSlJFQUFDZ0FYWTh3.F--\_vUle77-9EgwrCjgADg4k77-9RO-\_ve-\_vQPvv73vv73vv73vv70V77-977-9IO-\_ve-\_ve-\_ve-\_ve-\_vQ](https://luxurybali.cdn.prismic.io/api/v2?access_token=MC5ZZ0VvSlJFQUFDZ0FYWTh3.F--_vUle77-9EgwrCjgADg4k77-9RO-_ve-_vQPvv73vv73vv73vv70V77-977-9IO-_ve-_ve-_ve-_ve-_vQ) failed, reason: Client network socket disconnected before secure TLS connection was established"," at process. (/var/runtime/index.js:35:15)"," at process.emit (events.js:400:28)"," at processPromiseRejections (internal/process/promises.js:245:33)"," at processTicksAndRejections (internal/process/task\_queues.js:96:32)"]}

---

<div class="post-metadata">

**Author:** ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)\
**Post date:** [July 4, 2022, 7:52pm UTC](https://community.prismic.io/t/client-error-socket-disconnected/10492/4 "2022-07-04T19:52:57Z")

</div>

Hello @luxurybalirentals, I'm not sure if this error is related to your Prismic repository. Which steps did you follow to find this error?
