mirror of
https://github.com/bugsink/bugsink.git
synced 2025-12-16 18:15:08 -06:00
ingest ParseError: don't raise a 500; make this the SDK's problem (400)
500 was just fine when I was still calibrating the envelope parsing, but AFAICT it's correct now, so I'd rather not get notified about 'remaining problems' (which are SDK problems)
This commit is contained in:
@@ -118,6 +118,8 @@ class BaseIngestAPIView(View):
|
||||
return self._set_cors_headers(JsonResponse({"message": str(e)}, status=HTTP_413_CONTENT_TOO_LARGE))
|
||||
except ValidationError as e:
|
||||
return self._set_cors_headers(JsonResponse({"message": str(e)}, status=HTTP_400_BAD_REQUEST))
|
||||
except ParseError as e:
|
||||
return self._set_cors_headers(JsonResponse({"message": str(e)}, status=HTTP_400_BAD_REQUEST))
|
||||
|
||||
@classmethod
|
||||
def get_sentry_key_for_request(cls, request):
|
||||
|
||||
Reference in New Issue
Block a user