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.
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
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
@Walshy | Out of office - thanks for the reply, that link just takes me to the dashboard
Follow the banner
It says to choose account, choose project and choose a deployment
ah, got it - thanks
@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...
I'm getting the following error:
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.