fix: Suppress db validation errors in error reporting
This commit is contained in:
@@ -9,11 +9,19 @@ if (env.SENTRY_DSN) {
|
|||||||
release: env.RELEASE,
|
release: env.RELEASE,
|
||||||
maxBreadcrumbs: 0,
|
maxBreadcrumbs: 0,
|
||||||
ignoreErrors: [
|
ignoreErrors: [
|
||||||
// emitted by Koa when bots attempt to snoop on paths such as wp-admin
|
// These errors are expected in normal running of the application and
|
||||||
// or the user client submits a bad request. These are expected in normal
|
// don't need to be reported.
|
||||||
// running of the application and don't need to be reported.
|
// Validation
|
||||||
"BadRequestError",
|
"BadRequestError",
|
||||||
|
"SequelizeValidationError",
|
||||||
|
"ValidationError",
|
||||||
|
|
||||||
|
// Authentication
|
||||||
"UnauthorizedError",
|
"UnauthorizedError",
|
||||||
|
"TeamDomainRequiredError",
|
||||||
|
"GmailAccountCreationError",
|
||||||
|
"AuthRedirectError",
|
||||||
|
"UserSuspendedError",
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user