diff --git a/bd_api/custom/graphql_jwt.py b/bd_api/custom/graphql_jwt.py index 925b502f..25318885 100644 --- a/bd_api/custom/graphql_jwt.py +++ b/bd_api/custom/graphql_jwt.py @@ -44,7 +44,7 @@ def ownership_required(f, exc=exceptions.PermissionDenied): def get_uid(context, exp=r"id:\s[\"]?(\d+)[\"]?"): try: - query = str(context.body).replace('\\"', "").lower() + query = context.body.decode("utf-8").replace('\\"', "").lower() except Exception: query = str(context._post).replace('\\"', "").lower()