Skip to content

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

@ddahan

Description

@ddahan

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions