fix(usfm): stop leaking raw error detail in sync export 500s#200
Merged
Conversation
The sync export and exportable-books handlers returned the raw exception message to the client via `details`. The full error is already logged server-side (logger.error → App Insights with projectUnitId/bookIds), so drop `details` from the client response and remove the now-unused ErrorResponse interface. Async-path handlers are left for the async pipeline hardening (#196). Refs #195
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughTwo catch blocks in ChangesUSFM Route Error Response Hardening
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related issues
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
AnuMonachan
approved these changes
Jun 23, 2026
This was referenced Jun 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #195.
Summary
The sync USFM export handlers (
exportProjectUSFMRouteand the exportable-bookshandler) returned the raw exception message to the client via
details. Thefull error is already logged server-side (
logger.error→ App Insights withprojectUnitId/bookIds), so this dropsdetailsfrom the client 500responses and removes the now-unused
ErrorResponseinterface.Scope
/usfm/async) have thesame pattern but are left for Async USFM export pipeline hardening (pre-enablement) #196 (async export pipeline hardening), where
that handler is being reworked anyway.
definitions; no overlap.
Companion
The user-facing half of #195 is in fluent-web: send
credentialson theexport request + surface the server message in the export dialog (separate PR).
Test plan
npm run typechecknpm run lintnpm run test— 80/80 passSummary by CodeRabbit
Bug Fixes
Refactor