Skip to content

Exceptions raised in API endpoints are not forwarded to Sentry if DEBUG=False #134

@stevenbal

Description

@stevenbal

This was noticed via maykinmedia/open-klant#525

It seems that exceptions that lead to 500 errors via the API are not sent to Sentry, which makes debugging more difficult. I tested this locally and this issue does not seem to occur if DEBUG=True

Possibly related line:

sentry_client.captureException()

I think that this silenced importerror is the culprit: https://github.com/maykinmedia/commonground-api-common/blob/main/vng_api_common/compat.py#L7

TODO:

Metadata

Metadata

Assignees

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions