-
Notifications
You must be signed in to change notification settings - Fork 557
Closed
Labels
BugGood first issueGood for newcomersGood for newcomersIntegration: FalconTriagedHas been looked at recently during old issue triageHas been looked at recently during old issue triage
Description
How do you use Sentry?
Sentry Saas (sentry.io)
Version
1.5.6
Steps to Reproduce
- Attach a custom exception handler:
import marshmallow
def marshmallow_validation_error_handler(req, res, exc, params):
"""Transforms a marshmallow validation error into the appropriate HTTP response."""
raise falcon.HTTPError(400)
api.add_error_handler(marshmallow.ValidationError, marshmallow_validation_error_handler)
- Do an API request that leads to a validation error
Expected Result
The marshmallow
exception should not have been reported to Sentry.
Actual Result
The custom exception leads to a 4xx, not a 5xx, yet it is still reported as an unhandled error on Sentry.
fbexiga and olivertso
Metadata
Metadata
Assignees
Labels
BugGood first issueGood for newcomersGood for newcomersIntegration: FalconTriagedHas been looked at recently during old issue triageHas been looked at recently during old issue triage
Projects
Status
No status