debug-core-conector

This commit is contained in:
2023-10-13 15:48:53 +03:00
parent 4e078bf978
commit d8c3f80451
2 changed files with 4 additions and 5 deletions

View File

@@ -16,6 +16,7 @@ async def get_author(author_id):
try:
async with AsyncClient() as client:
response = await client.post(API_BASE, headers=headers, data=gql)
print(f"[services.core] get_author response: {response.status_code} {response.text}")
if response.status_code != 200:
return None
r = response.json()