Astro -- "Failed to call getStaticPaths" during build

This only occurs on CF Pages deploys, I tried it locally, on Netlify, and on Coolify and it ran just fine on those platforms. I would love to be able to keep using CF Pages though, seeing as that's where all of my domains live. I am using the Build Version 2 (I tried 1 as well, but it's outdated). I am also using Astro v5, but I did successfully deploy this same app just two days ago so I don't think it's an issue related to Astro v5.
[ERROR] [build] Failed to call getStaticPaths for src/pages/[…permalink].astro
13:42:12.953 fetch failed
13:42:12.953 Location:
13:42:12.953 /opt/buildhome/repo/node_modules/astro/dist/core/render/route-cache.js:29:17
13:42:12.954 Stack trace:
13:42:12.954 at Object.fetch (node:internal/deps/undici/undici:11576:11)
13:42:12.954 at async Object.request (file:///opt/buildhome/repo/dist/worker.js/pages/—permalink_.astro.mjs?time=1734028922649:42:4362)
13:42:12.954 at async callGetStaticPaths (file:///opt/buildhome/repo/node_modules/astro/dist/core/render/route-cache.js:29:17)
13:42:12.954 at async generatePage (file:///opt/buildhome/repo/node_modules/astro/dist/core/build/generate.js:149:19)
13:42:12.954 at async staticBuild (file:///opt/buildhome/repo/node_modules/astro/dist/core/build/static-build.js:94:5)
13:42:12.954 Caused by:
13:42:12.954 Connect Timeout Error
13:42:12.954 at onConnectTimeout (/opt/buildhome/repo/node_modules/wrangler/wrangler-dist/cli.js:6054:29)
13:42:12.954 at Immediate._onImmediate (/opt/buildhome/repo/node_modules/wrangler/wrangler-dist/cli.js:6042:13)
13:42:12.985 Failed: Error while executing user command. Exited with error code: 1
[ERROR] [build] Failed to call getStaticPaths for src/pages/[…permalink].astro
13:42:12.953 fetch failed
13:42:12.953 Location:
13:42:12.953 /opt/buildhome/repo/node_modules/astro/dist/core/render/route-cache.js:29:17
13:42:12.954 Stack trace:
13:42:12.954 at Object.fetch (node:internal/deps/undici/undici:11576:11)
13:42:12.954 at async Object.request (file:///opt/buildhome/repo/dist/worker.js/pages/—permalink_.astro.mjs?time=1734028922649:42:4362)
13:42:12.954 at async callGetStaticPaths (file:///opt/buildhome/repo/node_modules/astro/dist/core/render/route-cache.js:29:17)
13:42:12.954 at async generatePage (file:///opt/buildhome/repo/node_modules/astro/dist/core/build/generate.js:149:19)
13:42:12.954 at async staticBuild (file:///opt/buildhome/repo/node_modules/astro/dist/core/build/static-build.js:94:5)
13:42:12.954 Caused by:
13:42:12.954 Connect Timeout Error
13:42:12.954 at onConnectTimeout (/opt/buildhome/repo/node_modules/wrangler/wrangler-dist/cli.js:6054:29)
13:42:12.954 at Immediate._onImmediate (/opt/buildhome/repo/node_modules/wrangler/wrangler-dist/cli.js:6042:13)
13:42:12.985 Failed: Error while executing user command. Exited with error code: 1
Not sure how to get around this-- perhaps it's a Cloudflare issue? My deployment worked fine two days ago, and since then I've mostly just edited CSS classes. This Astro project loads content from the Directus CMS, is in Astro's 'static' mode, and uses SSG.
1 Reply
bogz
bogzOP2w ago
I have to bump this, because this seems to be an issue on Cloudflare's end.
Want results from more Discord servers?
Add your server