diff --git a/authentik/api/tasks.py b/authentik/api/tasks.py index 3cfdfb85f..727a948da 100644 --- a/authentik/api/tasks.py +++ b/authentik/api/tasks.py @@ -6,7 +6,7 @@ from authentik.root.celery import CELERY_APP SENTRY_SESSION = get_http_session() -@CELERY_APP.task(bind=True) +@CELERY_APP.task() def sentry_proxy(payload: str): """Relay data to sentry""" SENTRY_SESSION.post( diff --git a/authentik/api/v3/sentry.py b/authentik/api/v3/sentry.py index 767c35036..caa7c3b85 100644 --- a/authentik/api/v3/sentry.py +++ b/authentik/api/v3/sentry.py @@ -56,5 +56,5 @@ class SentryTunnelView(APIView): dsn = header.get("dsn", "") if dsn != settings.SENTRY_DSN: return HttpResponse(status=400) - sentry_proxy.delay(full_body) + sentry_proxy.delay(full_body.decode()) return HttpResponse(status=204)