# \[Gatsby Cloud\] Client network socket disconnected before secure TLS connection was established

**URL:** <https://community.prismic.io/t/gatsby-cloud-client-network-socket-disconnected-before-secure-tls-connection-was-established/14059>\
**Category:** Developing with Prismic\
**Tags:** gatsby\
**Created:** [September 11, 2023, 8:27am UTC](https://community.prismic.io/t/gatsby-cloud-client-network-socket-disconnected-before-secure-tls-connection-was-established/14059 "2023-09-11T08:27:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexandre.fauchard](https://avatars.discourse-cdn.com/v4/letter/a/d6d6ee/32.png) [@alexandre.fauchard](https://community.prismic.io/u/alexandre.fauchard)\
**Post date:** [September 11, 2023, 8:27am UTC](https://community.prismic.io/t/gatsby-cloud-client-network-socket-disconnected-before-secure-tls-connection-was-established/14059/1 "2023-09-11T08:27:02Z")

</div>

Hello,  
For the past 1 or 2 months, we've been experiencing a random error when building our website on Gatsby Cloud.

 ![CleanShot 2023-09-11 at 10.16.16](https://europe1.discourse-cdn.com/flex013/uploads/prismic/original/2X/c/cda61947774cda33db78a1dc38dbbb4bc8d704e0.png)

We haven't made any changes to the project for over a year, as we no longer have the capacity to do so. The website is only updated by Prismic.

We use `Gatsby` `4.17.2` and `gatsby-source-prismic` `5.2.7-alpha.0` and we can't update to the latest versions...

Do you know how to get it working again?

---

<div class="post-metadata">

**Author:** ![Levi](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/levi/32/24_2.png) [@Levi](https://community.prismic.io/u/Levi)\
**Post date:** [September 11, 2023, 12:11pm UTC](https://community.prismic.io/t/gatsby-cloud-client-network-socket-disconnected-before-secure-tls-connection-was-established/14059/3 "2023-09-11T12:11:13Z")

</div>

Hi @alexandre.fauchard, I'm not sure what could be causing this, so I've asked some of the team who know gatsby a bit better if they have any ideas. I'll let you know what I hear back.

---

<div class="post-metadata">

**Author:** ![angeloashmore](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/angeloashmore/32/2685_2.png) [@angeloashmore](https://community.prismic.io/u/angeloashmore)\
**Post date:** [September 14, 2023, 4:13am UTC](https://community.prismic.io/t/gatsby-cloud-client-network-socket-disconnected-before-secure-tls-connection-was-established/14059/5 "2023-09-14T04:13:53Z")

</div>

Hi @alexandre.fauchard,

Although it's probably not the answer you are looking for, the most straightforward way to fix this type of network issue is to update your software:

- Use the latest version of Node.js available
- Update to the latest v5 version of `gatsby-source-prismic` (`v5.3.1`), which you should be able to do with no changes to your code
- Same for Gatsby: update to the latest version of Gatsby 4 (`4.25.7`)

It's possible this bug is fixed in the newer versions.
