fastapi-debug-toolbar icon indicating copy to clipboard operation
fastapi-debug-toolbar copied to clipboard

SQLAlchemyPanel: TypeError: solve_dependencies() missing 1 required keyword-only argument: 'embed_body_fields'

Open optroodt opened this issue 1 year ago • 6 comments

The SQLAlchemyPanel no longer works from FastAPI 0.112.4.

TypeError: solve_dependencies() missing 1 required keyword-only argument: 'embed_body_fields'

FastAPI 0.112.4 introduced the embed_body_fields parameter to fastapi.dependencies.utils.solve_dependencies function.

https://github.com/fastapi/fastapi/commit/aa21814a89853c17c139054a5c51f0bb1ea68a0a#diff-aef3dac481b68359f4edd6974fa3a047cfde595254a4567a560cebc9ccb0673fR553

optroodt avatar Sep 12 '24 13:09 optroodt

Duplicate of https://github.com/mongkok/fastapi-debug-toolbar/issues/53

ddahan avatar Sep 13 '24 15:09 ddahan

Work around is to pin fastapi package to version 0.100

JulesVautier-io avatar Dec 05 '24 12:12 JulesVautier-io

I have this issue as well

Hoomanzoh79 avatar Dec 09 '24 18:12 Hoomanzoh79

@JulesVautier-io @Hoomanzoh79 @optroodt

In the end I decided to use a serious tool: Pydantic Logfire. It can work both in production or in local (while it still requires internet as it's a cloud tool)/

It's free until 10 millions of events and the UI is gorgeous. It replaces many tools at once.

I'm kind of tired of situations like these where I install a tool which does not work a few weeks later because the author does not want to maintain it. Not blaming the author here, I'm blaming myself to trust small ans single-author packages.

Hope that helps guys!

ddahan avatar Dec 10 '24 09:12 ddahan

@JulesVautier-io @Hoomanzoh79 @optroodt

In the end I decided to use a serious tool: Pydantic Logfire. It can work both in production or in local (while it still requires internet as it's a cloud tool)/

It's free until 10 millions of events and the UI is gorgeous. It replaces many tools at once.

I'm kind of tired of situations like these where I install a tool which does not work a few weeks later because the author does not want to maintain it. Not blaming the author here, I'm blaming myself to trust small ans single-author packages.

Hope that helps guys!

I'll definitely check it out, Thank you for your suggestion. does it help tracking down the queries as well? similiar to django debug toolbar which lets you know about the quality of your queries.

Hoomanzoh79 avatar Dec 11 '24 09:12 Hoomanzoh79

@Hoomanzoh79 absolutely! image

ddahan avatar Dec 11 '24 12:12 ddahan