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:
Klaas van Schelven
2025-12-09 15:58:48 +01:00
parent ec6d480cd1
commit 4fe8bd3fad

View File

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