-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
fix(bootstrap): Handle failed org preload requests #120588
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -185,11 +185,7 @@ export function initializeSdk(config: Config) { | |
| }, | ||
|
|
||
| beforeSend(event, hint) { | ||
| if ( | ||
| isFilteredRequestErrorEvent(event) || | ||
| isEventWithFileUrl(event) || | ||
| isNullTupleUnhandledRejectionEvent(hint) | ||
| ) { | ||
| if (isFilteredRequestErrorEvent(event) || isEventWithFileUrl(event)) { | ||
| return null; | ||
| } | ||
|
|
||
|
Comment on lines
185
to
191
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: Removing the Suggested FixUpdate the Prompt for AI AgentAlso affects:
Did we get this right? 👍 / 👎 to inform future reviews.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. its okay if it makes some noise while deploying |
||
|
|
@@ -279,21 +275,6 @@ export function isEventWithFileUrl(event: Event): boolean { | |
| return !!event.request?.url?.startsWith('file://'); | ||
| } | ||
|
|
||
| /** | ||
| * Ignore unhandled rejections of `[null, null]`. The SDK keeps the original | ||
| * array in the hint until after `beforeSend`, then normalizes it to the | ||
| * `[null,null]` message shown in the stored event. | ||
| */ | ||
| function isNullTupleUnhandledRejectionEvent(hint: Sentry.EventHint): boolean { | ||
| const originalException = hint.originalException; | ||
|
|
||
| return ( | ||
| Array.isArray(originalException) && | ||
| originalException.length === 2 && | ||
| originalException.every(value => value === null) | ||
| ); | ||
| } | ||
|
|
||
| /** Tag and set fingerprint for UndefinedResponseBodyError events */ | ||
| function handlePossibleUndefinedResponseBodyErrors(event: Event): void { | ||
| // One or both of these may be undefined, depending on the type of event | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Filter removed too early
Medium Severity
Removing
isNullTupleUnhandledRejectionEventdrops coverage for the Djangopreload-data.htmlpath, which still rejects failed preloads as an undefined status tuple. Those early unhandled rejections can resurface as the same noisy frontend errors this change is trying to eliminate.Reviewed by Cursor Bugbot for commit c95cdd0. Configure here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
its okay if it makes some noise while deploying