Repository navigation
Conversation
`raw-body` (behind `express.json` / `express.urlencoded`) raises a 400 `BadRequestError: request aborted` (`type: 'request.aborted'`) whenever the client closes the connection before the request body is fully received. This is not actionable and nobody reads the response, but our Express error handler reported it to Sentry as an unknown error. It was already ignored in Sentry as OC-API-7JV (25k+ events), but the sentry-javascript v11.15.0 bump (#12611) changed the SDK frames of the stack, so Sentry regrouped it as a new "escalating" issue (OC-API-898). Filter it in code instead of relying on an ignore rule tied to the stack trace, and log it at info level. Fixes OC-API-898 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RGjene6UNw6idtJxr3wH6k
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
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. |
This branch has not been deployed
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.
Problem
raw-body(behindexpress.json/express.urlencoded) raises a 400BadRequestError: request aborted(type: 'request.aborted') when the client closes the connection before the body is fully received (closed tab, navigation, flaky network). It is not actionable and nobody reads the response, but the Express error handler reported it to Sentry as an unknown error.It used to be ignored in Sentry (OC-API-7JV), but the sentry-javascript v11.15.0 bump (#12611) changed the SDK frames in the stack, so Sentry regrouped it as a new "escalating" issue (OC-API-898).
Change
request.abortederrors are no longer sent to Sentry and are logged atinfolevel (with method and URL). The 400 response is unchanged.raw-bodyerrors (e.g.entity.parse.failed) still are.Notes
Request abortedonPOST /images, via multer) goes through another path and is not covered here.Fixes OC-API-898
Generated by Claude Code