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()
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: