Skip to content

Fix registration 500: make rate limiting fail-open#44

Merged
onamfc merged 1 commit intomainfrom
dev
Mar 16, 2026
Merged

Fix registration 500: make rate limiting fail-open#44
onamfc merged 1 commit intomainfrom
dev

Conversation

@onamfc
Copy link
Copy Markdown
Owner

@onamfc onamfc commented Mar 16, 2026

Summary

  • Root cause: Upstash Redis fetch calls failing, causing unhandled exception in registration (and all rate-limited routes)
  • checkRateLimit now catches connection errors and allows requests through rather than returning 500
  • Reverts temporary debug field from registration response

Test plan

  • Verify registration works even with broken/missing Upstash credentials
  • Verify rate limiting still works when Upstash is healthy
  • Check Upstash credentials in Vercel env vars (may be expired or misconfigured)

Upstash Redis fetch failures were causing registration (and potentially
other endpoints) to return 500 errors. Rate limiting now catches
connection errors and allows the request through rather than blocking it.
@onamfc onamfc merged commit e9e5143 into main Mar 16, 2026
1 of 2 checks passed
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 16, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cheesebox Building Building Preview, Comment Mar 16, 2026 10:40pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant