From 0c73f376a25b6756f505acde0e35a60b3d5874a7 Mon Sep 17 00:00:00 2001 From: Untone Date: Wed, 11 Oct 2023 16:41:01 +0300 Subject: [PATCH] dumnps-fix --- services/auth.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/auth.py b/services/auth.py index a90c069..442ec9d 100644 --- a/services/auth.py +++ b/services/auth.py @@ -1,3 +1,4 @@ +import json from functools import wraps from httpx import AsyncClient, HTTPError from settings import AUTH_URL @@ -17,7 +18,7 @@ async def check_auth(req): headers = {"Authorization": token, "Content-Type": "application/json"} async with AsyncClient() as client: response = await client.post(AUTH_URL, headers=headers, data=json.dumps(gql)) - print(f"{response}") + print(f"{response.text}") if response.status_code != 200: return False, None r = response.json()