#341 — [Bug]: self_management_router.create_tenant “QueryCanceledError: canceling statement due to statement timeout”

Repo: Twill-AI/facade State: open | Status: open Assignee: Unassigned

Created: 2025-05-07 · Updated: 2025-09-15

Description

Steps to reproduce

Not clear, caused by https://twill-network.slack.com/archives/C07TPN6FCBX/p1746456327733109

But in general it is request to create tenant which failed with Unhandled exception: canceling statement due to statement timeout error.

Expected behavior

No issues, tenant created.

Actual behavior

Error logs:

2025-05-05 21:18:36.159|ERROR|master|fastapi_utils:164|POST http://staging.twillai.com/api/v1/self-management/tenant Unhandled exception: canceling statement due to statement timeout
Traceback (most recent call last):
  File "/app/app/core/fastapi_utils.py", line 122, in run_route_handler
    response = await dependant.call(**values)
               ^^^^^^^^^^^^^^^^^^^^^^^^

## Notes

_Add implementation notes, blockers, and context here_

## Related

_Add wikilinks to related people, meetings, or other tickets_