Skip to content
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

ref(ui): Remove capture exception for "Unknown event data" #71460

Merged
merged 2 commits into from
May 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions static/app/components/events/interfaces/utils.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import * as Sentry from '@sentry/react';
import partition from 'lodash/partition';
import * as qs from 'query-string';

Expand Down Expand Up @@ -159,14 +158,11 @@ export function getCurlCommand(data: EntryRequest['data']) {
default:
if (typeof data.data === 'string') {
result += ' \\\n --data "' + escapeBashString(data.data) + '"';
} else if (Object.keys(data.data).length === 0) {
// Do nothing with empty object data.
} else {
Sentry.withScope(scope => {
scope.setExtra('data', data);
Sentry.captureException(new Error('Unknown event data'));
});
}
// It is common for `data.inferredContentType` to be
// "multipart/form-data" or "null", in which case, we do not attempt to
// serialize the `data.data` object as port of the cURL command.
// See https://github.com/getsentry/sentry/issues/71456
}
}

Expand Down
Loading