#163 — BUG: InsufficientPrivilegeError in ASQLDatabase
Repo: Twill-AI/facade State: closed | Status: done Assignee: Unassigned
Created: 2024-10-24 · Updated: 2024-10-24
Description
Caused by https://github.com/Twill-AI/twill-llm-engine/issues/169
STR:
- Login in staging under user with real business data, not detached one.
- Open LLM Chat and make prompt which would make LlmEngine to request business data.
Expected: LlmEngine has access to business data
Actual:
Facade’s logs:
2024-10-24T09:07:50.700553139Z File "/usr/local/lib/python3.12/site-packages/twill_llm_engine/main_graph.py", line 356, in call_model
2024-10-24T09:07:50.700556906Z db_statistics = await configurable["db_interface"].get_db_statistics()
2024-10-24T09:07:50.700560633Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-10-24T09:07:50.700564380Z File "/usr/local/lib/python3.12/site-packages/twill_llm_engine/database.py", line 38, in out_func
2024-10-24T09:07:50.700568147Z result = await func(self, *args, **kwargs)
2024-10-24T09:07:50.700571824Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-10-24T09:07:50.700575661Z File "/usr/local/lib/python3.12/site-packages/twill_llm_engine/database.py", line 178, in get_db_statistics
2024-10-24T09:07:50.700593163Z results = await self.db.run_query(
2024-10-24T09:07:50.700599565Z ^^^^^^^^^^^^^^^^^^^^^^^^
2024-10-24T09:07:50.700603993Z File "/usr/local/lib/python3.12/site-packages/shared/multitenancy/database.py", line 74, in run_query
2024-10-24T09:07:5
## Notes
_Add implementation notes, blockers, and context here_
## Related
_Add wikilinks to related people, meetings, or other tickets_