#377 — [Bug]: connection was closed in the middle of operation
Repo: Twill-AI/facade State: open | Status: open Assignee: Unassigned
Created: 2025-06-24 · Updated: 2025-09-15
Description
Steps to reproduce
Caused by https://twill-network.slack.com/archives/C07TPN6FCBX/p1750689325717899. Probably the same as https://github.com/Twill-AI/business-data/issues/63.
Not clear how to reproduce. Alerts happened only June 22 (2025-06-22 19:08:36.914) and June 23 (few occurrences starting at 2025-06-23 04:07:17.582 and finishing at 2025-06-23 14:33:33.158).
Expected behavior
No issues about db connections
Actual behavior
Logs:
2025-06-23 12:55:14.802|ERROR|Twllpymnts|fastapi_utils:164|GET http://staging.twillai.com/api/v1/home Unhandled exception: connection was closed in the middle of operation
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/asyncpg
## Notes
_Add implementation notes, blockers, and context here_
## Related
_Add wikilinks to related people, meetings, or other tickets_