Skip to content

Sentry doesn't pick up errors via Slack Webhook #310

Description

@reparadocs

I'm using Django and when I cURL my endpoint, the exception is raised and logged in Sentry successfully. However, when Slack hits the endpoint through its webhook system, it somehow doesn't get logged in Sentry. I know it's still being hit because the 500 response still shows up in my logs and the error gets logged correctly in rollbar.

Here's the code:

@csrf_exempt
def Slack_Webhook(request):

  data = json.loads(request.body)

  raise Exception()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions