From abd9fab41a4532b44b92c65f084c4e96b89a5f53 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 15 Sep 2021 19:39:58 +0200 Subject: [PATCH] api: fix call of sentry proxy task Signed-off-by: Jens Langhammer --- authentik/api/tasks.py | 2 +- authentik/api/v3/sentry.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)