We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68800e5 commit 7c8dc2fCopy full SHA for 7c8dc2f
src/api/server.js
@@ -25,12 +25,20 @@ const FILTERED_ERROR_TYPES = [
25
const FILTERED_ERROR_CODES = [
26
"FST_ERR_VALIDATION",
27
"FST_ERR_CTP_INVALID_MEDIA_TYPE",
28
+ "FST_ERR_CTP_EMPTY_JSON_BODY",
29
];
30
const FILTERED_STATUS_CODES = [422];
31
32
if (CONFIG.sentry.dsn) {
33
Sentry.init({
34
dsn: CONFIG.sentry.dsn,
35
+ ignoreErrors: [
36
+ "Object contains forbidden prototype property",
37
+ "value too long for type character varying(255)",
38
+ "Malformed urlencoded form",
39
+ "Malformed part header",
40
+ "Unexpected end of form",
41
+ ],
42
beforeSend(event, hint) {
43
// Filter all 422 status codes
44
const originalError = hint.originalException;
0 commit comments