Sveltekit +page.server.ts load() function, both fetch() and event.fetch() fail

I have a sveltekit app running on Cloudflare pages. In server side load(event) functions, neither fetch() or event.fetch() works. I can not even get a console.log() to stream any log() to try to diadnose this. The app works fine both locally and on Vercel. Is there any known workaround for this on Cloudflare pages?
2 Replies
Chaika
Chaika9mo ago
If you're using CF Pages, in the future you'd want #pages-help You can tail the latest deployment to see logs from it. What exactly do you mean by fetch doesn't work. It always excepts out, it always returns a bad status code, etc? ?pages-logs
Flare
Flare9mo ago
If you're looking to tail a Pages Function you can do so in the UI here: https://dash.cloudflare.com?to=/:account/pages/view/:pages-project/:pages-deployment/functions or with Wrangler: wrangler pages deployment tail [deploymentId/url]
Want results from more Discord servers?
Add your server