From 9c14a4ebaa495a3fc808006995e37aa4f631d5e4 Mon Sep 17 00:00:00 2001 From: Untone Date: Wed, 11 Oct 2023 15:49:07 +0300 Subject: [PATCH] json-dumps-fix --- services/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/auth.py b/services/auth.py index e2c078d..a90c069 100644 --- a/services/auth.py +++ b/services/auth.py @@ -16,7 +16,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=gql) + response = await client.post(AUTH_URL, headers=headers, data=json.dumps(gql)) print(f"{response}") if response.status_code != 200: return False, None