Skip to content

fix(api): return coded 503 when rate limiter fails on keeper health - #1206

Merged
collinsezedike merged 1 commit into
drydocs:mainfrom
The-Big-Danny:bug-keeper-health
Oct 20, 2026
Merged

collinsezedike merged 1 commit into
drydocs:mainfrom
The-Big-Danny:bug-keeper-health

Conversation

@The-Big-Danny

Copy link
Copy Markdown
Contributor

checkRateLimit was awaited with no try/catch in the health action, so an Upstash failure rejected the handler and surfaced a generic 500 instead of the 503 the other keeper actions and admin routes return when the limiter backend is unavailable. Wrap it in the same try/catch and add a test covering the failure.

Summary

Test plan

  • pnpm lint && pnpm typecheck && pnpm test pass locally
  • [ ]

Closes #1137

checkRateLimit was awaited with no try/catch in the health action, so
an Upstash failure rejected the handler and surfaced a generic 500
instead of the 503 the other keeper actions and admin routes return
when the limiter backend is unavailable. Wrap it in the same
try/catch and add a test covering the failure.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@drips-wave

drips-wave Bot commented Oct 20, 2026

Copy link
Copy Markdown

@The-Big-Danny Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@vercel

vercel Bot commented Oct 20, 2026

Copy link
Copy Markdown

@The-Big-Danny is attempting to deploy a commit to the Collins' projects Team on Vercel.

A member of the Team first needs to authorize it.

@collinsezedike collinsezedike left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix, @The-Big-Danny. The coded 503 now matches the other rate-limited handlers. If you'd like to pick up another open issue, there are several available in the tracker.

@collinsezedike
collinsezedike merged commit 44d8bb6 into drydocs:main Oct 20, 2026
10 of 11 checks passed
@collinsezedike

Copy link
Copy Markdown
Collaborator

@The-Big-Danny thank you again for getting this over the line. If you are enjoying working on Meridian, starring the repository helps more contributors find the project and is much appreciated.

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.

[Bug] Keeper health does not handle a rate-limiter failure

2 participants