Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQLAlchemy panel does not work anymore (TypeError: 'SolvedDependency' object is not subscriptable) #53

Open
ddahan opened this issue Sep 10, 2024 · 0 comments

Comments

@ddahan
Copy link

ddahan commented Sep 10, 2024

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: fastapi/fastapi@5b7fa39

My versions

  • Python 3.12.5
  • FastAPI 0.114.0
  • fastapi-debug-toolbar 0.6.3

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant