fastapi-debug-toolbar
fastapi-debug-toolbar copied to clipboard
SQLAlchemy panel does not work anymore (TypeError: 'SolvedDependency' object is not subscriptable)
Hi, and first, thanks a lot for this great project.
When adding "debug_toolbar.panels.sqlalchemy.SQLAlchemyPanel"
as a panel, all my endpoints are now broken with this error:
File "/usr/local/lib/python3.12/site-packages/debug_toolbar/dependencies.py", line 25, in get_dependencies
# return solved_result.response
^^^^^^^^^^^^^^^^
TypeError: 'SolvedDependency' object is not subscriptable
Investigation
The issue seems to be related to a FastAPI file used, that have has been refactored multiple times lately: https://github.com/fastapi/fastapi/commits/master/fastapi/dependencies/utils.py And the guilty commit could be: https://github.com/fastapi/fastapi/commit/5b7fa3900e3156dcb93f496516740bc06903d7d8
My versions
- Python 3.12.5
- FastAPI 0.114.0
- fastapi-debug-toolbar 0.6.3
Thanks!