How to Debug 500 Error After Deploying Astro

Hey guys, wondering how I can look at finding the logs for my pages app (free tier) using astro. It builds and deploys find, but when I visit the pages URL a 500 is returned immediately. When I run locally with Wrangler everything runs fine.
So, my question is - where can I find the logs (looks like they don't come w/ the free tier in CF) ? Otherwise I have no clue what is happening and no way to debug and solve the 500.
6 Replies
Walshy
Walshy3mo ago
you have logs - magic link: https://dash.cloudflare.com/?to=/:account/pages/view/:pages-project/:pages-deployment/functions You'll need to tail the logs and see why it's returning 500
bbqchickenrobot
bbqchickenrobotOP3mo ago
@Walshy | Out of office - thanks for the reply, that link just takes me to the dashboard
Walshy
Walshy3mo ago
Follow the banner It says to choose account, choose project and choose a deployment
bbqchickenrobot
bbqchickenrobotOP3mo ago
ah, got it - thanks
WillTolmie
WillTolmie3mo ago
@bbqchickenrobot Which version of Astro? Astro 4.16.1 had a regression with
GitHub
TypeError: Can't modify immutable headers. in Cloudflare Pages afte...
Astro Info Astro v4.16.1 Node v20.16.0 System macOS (arm64) Package Manager pnpm Output hybrid Adapter @astrojs/cloudflare Integrations @astrojs/react @astrojs/svelte @astrojs/tailwind @sanity/astr...
bbqchickenrobot
bbqchickenrobotOP3mo ago
I'm getting the following error:
"logs": [
{
"message": [
"00:52:32 [ERROR] Error: No such module \"chunks/svgo\".\n imported from \"chunks/index_B0VuGPDv.mjs\""
],
"level": "error",
"timestamp": 1729644752692
}
],
"logs": [
{
"message": [
"00:52:32 [ERROR] Error: No such module \"chunks/svgo\".\n imported from \"chunks/index_B0VuGPDv.mjs\""
],
"level": "error",
"timestamp": 1729644752692
}
],
I'm using 4.12.2. I will upgrade to latest and see if that helps any. Not sure how SVGO should be loaded on CF.
Want results from more Discord servers?
Add your server