Skip to content

Commit

Permalink
fixed: response of /api/delete/id
Browse files Browse the repository at this point in the history
  • Loading branch information
glorenzo972 committed Apr 22, 2024
1 parent 65d3a09 commit e885691
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tilellm/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ async def reader(channel: aioredis.client.Redis):
res = await session.post(webhook,
json=pc_result.model_dump(exclude_none=True),
headers={"Content-Type": "application/json", "X-Auth-Token": token})
print(res)
print(await res.json())
except Exception as ewh:
logger.error(ewh)
pass
Expand All @@ -162,7 +164,8 @@ async def reader(channel: aioredis.client.Redis):
async with aiohttp.ClientSession() as session:
response = await session.post(webhook, json=res.model_dump(exclude_none=True),
headers={"Content-Type": "application/json", "X-Auth-Token": token})

print(response)
print(await response.json())
logger.error(f"Error {e}, webhook: {webhook}")
traceback.print_exc()
logger.error(e)
Expand Down

0 comments on commit e885691

Please sign in to comment.