Uh oh!
There was an error while loading. Please reload this page.
fix(proxy): surface upstream error cause and distinguish timeouts - #757
Conversation
Attach the original error as `cause` and include `errorName`/`errorCode` in H3Error data so proxy failures are debuggable. Return 504 Gateway Timeout when the upstream request hits the 15s abort, otherwise keep 502.
The latest updates on your projects. Learn more about Vercel for GitHub.
|
commit: |
ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe proxy handler now explicitly tracks upstream fetch timeouts using a Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
Uh oh!
There was an error while loading. Please reload this page.
🔗 Linked issue
Resolves#756
❓ Type of change
📚 Description
Proxy upstream failures previously threw a bare 502 with no
cause, making it impossible to tell a real upstream error from the 15s abort timeout. Now the original error is attached ascause,errorName/errorCodeare exposed inH3Error.data, and timeouts return504 Gateway Timeoutinstead of502.