Axum Post method trait bound error #2239
Replies: 2 comments 6 replies
-
Did you try https://docs.rs/axum/0.6.20/axum/attr.debug_handler.html? |
Beta Was this translation helpful? Give feedback.
3 replies
-
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Bug Report
Version: 0.6.2
Platform: stable-x86_64-pc-windows-msvc
Crates:
├── axum v0.6.20
│ ├── axum-core v0.3.4
│ ├── axum-macros v0.3.8 (proc-macro)
Description: Post Handler Trait Bound Error
I have come across of an Axum trait bound handler error:
And this is my handler implementation:
I am not sure where it went wrong since I correctly follow the order of extractors. Any guidance or solutions will be appreciated, thank you!
Edit:
More info on the
Context
struct:Edit: Service function (create_user) implementation, I am using launchbadge/sqlx as my database driver. If I resort to

&Pool<Postgres>
connection type, the error seems gone. This only happens when I try to run transactions,Beta Was this translation helpful? Give feedback.
All reactions