From d1447d3c0566cbecb99bf17d46b7ab30e87751b9 Mon Sep 17 00:00:00 2001 From: Untone Date: Wed, 13 Dec 2023 20:49:26 +0300 Subject: [PATCH] debug-response --- services/auth.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/auth.py b/services/auth.py index e116c7af..1596ad51 100644 --- a/services/auth.py +++ b/services/auth.py @@ -16,7 +16,9 @@ async def check_auth(req): async with aiohttp.ClientSession(timeout=aiohttp.ClientTimeout(total=30.0)) as session: async with session.post(AUTH_URL, json=gql) as response: - print(response) + response_text = await response.text() + print(f"[services.auth] response text: {response_text}") + if response.status != 200: return False, None r = await response.json()