Getting sudden 524 timeouts on redeploying working instances
I have a remix project on cloudflare pages, it was working fine for the past three days until i have created new deployment and suddenly im getting 524 error when signing in.
Previous deployments are working perfectly fine now, however the issue raise when i retry these deployment.
Any clue to solve/debug this issue would be appreciated.
1 Reply
The error comes from the auth library “better-auth” when trying to connect to Neon DB, giving an “connection terminated unexpectedly” error.
Now running the project with “wrangler pages dev” runs smoothly with 1-2s for auth related db requests. (Uses wrangler 3.95) with nodejs_compat_v2 flag
The cloudflare deployments use wrangler 3.92 (idk if thats relevant)
Im also on the worker paid plan
Fixed by downgrading compatibility date to 13/5/24