Everything was going well but today I made a commit updating to 2.7.0 in my backend, and the storefront deployment has failed. For some reason, I’m getting a “fetch failed” error, and sometimes it doesn’t even get that far — it just hangs on “await backend to be available.” I’ve spent several hours on this but I can’t figure out why. The AI suggests it might have something to do with the .env files, but I haven’t touched anything at all. From yesterday to today I’ve only changed the backend and nothing related to the .env. Any suggestions on what it could be? Thank you very much for your time. Here’s the error.
It all starts when the static pages are generated — at that point, it enters a loop that can last more than 20 minutes where every fetch fails. It’s as if the backend were down, but it’s not. And I’ve double-checked all the .env files — they’re correct.
Generating static pages (197/790)
TypeError: fetch failed
at node:internal/deps/undici/undici:13392:13
at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
digest: '3433511878',
[cause]: Error: Client network socket disconnected before secure TLS connection was established
at TLSSocket.onConnectEnd (node:_tls_wrap:1732:19)
at TLSSocket.emit (node:events:530:35)
at endReadableNT (node:internal/streams/readable:1698:12)
at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
code: 'ECONNRESET',
path: undefined,
host: 'backend-production-b057.up.railway.app',
port: 443,
localAddress: null
}
}