Skip to content

fix: preserve typed API error prototypes#995

Open
saurabhhhcodes wants to merge 9 commits into
Muneerali199:mainfrom
saurabhhhcodes:codex/api-validation-middleware-666
Open

fix: preserve typed API error prototypes#995
saurabhhhcodes wants to merge 9 commits into
Muneerali199:mainfrom
saurabhhhcodes:codex/api-validation-middleware-666

Conversation

@saurabhhhcodes

Copy link
Copy Markdown
Contributor

Summary\n- keep typed API errors intact through the handler chain\n- avoid prototype loss when middleware rethrows errors\n\n## Validation\n- reviewed the single-line API handler diff\n- no other files changed

@netlify

netlify Bot commented Jun 12, 2026

Copy link
Copy Markdown

👷 Deploy request for docmagic-muneer pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit f5da3d1

@netlify

netlify Bot commented Jun 12, 2026

Copy link
Copy Markdown

👷 Deploy request for docmagic1 pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit f5da3d1

@vercel

vercel Bot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

@saurabhhhcodes is attempting to deploy a commit to the muneerali199's projects Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai

coderabbitai Bot commented Jun 12, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@saurabhhhcodes, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 29 minutes and 39 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more credits in the billing tab to continue.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 9d79fb19-84d4-4cc6-bdbb-36d21b24c90f

📥 Commits

Reviewing files that changed from the base of the PR and between ff793ac and f5da3d1.

📒 Files selected for processing (10)
  • app/api/documents/route.ts
  • app/api/generate/letter/route.ts
  • app/api/generate/presentation/route.ts
  • app/api/generate/resume/route.ts
  • app/api/send-email/route.ts
  • jest.config.mjs
  • jest.polyfills.cjs
  • lib/api-handler.ts
  • lib/error-handler.ts
  • lib/validation.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Muneerali199 Muneerali199 added type:bug PR type: bug level:intermediate GSSoC difficulty: intermediate gssoc:approved Required GSSoC approval label mentor:muneerali199 Reviewed by mentor muneerali199 labels Jun 13, 2026
@Muneerali199

Copy link
Copy Markdown
Owner

@SaurabhhCodes please rebase on latest main to resolve conflicts

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

Labels

gssoc:approved Required GSSoC approval label level:intermediate GSSoC difficulty: intermediate mentor:muneerali199 Reviewed by mentor muneerali199 type:bug PR type: bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants