Here is the log stream from CF. I see the [ssr] Error: Network connection lost. error. There is a DB call being made in code to a postgres instance using postgresjs. Could that be the problem? π€
(some info from the log redacted)
{
"outcome": "ok",
"scriptName": "pages-worker--1658821-production",
"diagnosticsChannelEvents": [],
"exceptions": [],
"logs": [
{
"message": [
"07:57:50 PM [ssr] Error: Network connection lost.\n at Kd (functionsWorker-0.5221137254245514.js:2635:48)\n at new be (functionsWorker-0.5221137254245514.js:2648:428)\n at N (functionsWorker-0.5221137254245514.js:3544:42)\n at functionsWorker-0.5221137254245514.js:3775:167 (x2)"
],
"level": "error",
"timestamp": 1700683070942
}
],
"eventTimestamp": 1700683070796,
"event": {
"request": {
"url": "https://caa5a06b.astro-web-1sc.pages.dev/",
"method": "GET",
"headers": {
"accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8",
"accept-encoding": "gzip",
"accept-language": "en-US,en;q=0.5",
"cf-connecting-ip": "*********REDACTED*********",
"cf-ipcountry": "*********REDACTED*********",
"cf-ray": "82a3be68784e2d98",
"cf-visitor": "{\"scheme\":\"https\"}",
"connection": "Keep-Alive",
"host": "caa5a06b.astro-web-1sc.pages.dev",
"priority": "u=1",
"sec-fetch-dest": "document",
"sec-fetch-mode": "navigate",
"sec-fetch-site": "none",
"sec-fetch-user": "?1",
"upgrade-insecure-requests": "1",
"user-agent": "*********REDACTED*********",
"x-forwarded-proto": "https",
"x-real-ip": "*********REDACTED*********"
},
"cf": "*********REDACTED*********"
},
"response": {
"status": 500
}
},
"id": 0
}