#296 — [Bug]: exception in middlewares or fastapi_utils.py doesn’t add error details properly for alerter
Repo: Twill-AI/facade State: closed | Status: done Assignee: Unassigned
Created: 2025-03-06 · Updated: 2025-09-15
Description
Steps to reproduce
Caused by https://twill-network.slack.com/archives/C07TPN6FCBX/p1741083326413049
Probably somebody called /self-management/tenant API from “master” tenant or without having tenant created yet (but user was registered in Supabase).
Expected behavior
Log error is clear.
Actual behavior
logs:
2025-03-04 10:11:08.941|INFO|-no-tenant|fastapi_utils:220|START GET http://staging.twillai.com/api/v1/self-management/tenant from 185.46.143.34
2025-03-04 10:11:08.941|ERROR|-no-tenant|fastapi_utils:306|FINISH GET http://staging.twillai.com/api/v1/self-management/tenant took 0.000: exception in middlewares:
Traceback (most r
## Notes
_Add implementation notes, blockers, and context here_
## Related
_Add wikilinks to related people, meetings, or other tickets_