Replies: 1 comment 1 reply
-
Try decorating your handler with One thing that strikes me is that you're calling |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I encountered an issue where a processing function registered in the router would report an error when obtaining parameters from a request after adding state to the program. This error requires the processing function to implement a handler<_, _>, which confused me a lot. I tried to solve it, but I was unable to do so.
# This is my dependency
axum = "0.7.5"
serde = {version = "1.0.203",features = ["derive"]}
serde_json = "1.0.117"
sqlx = {version = "0.7.4",features = ["runtime-tokio","postgres"]}
tokio = {version = "1.38.0",features = ["full"]}
# This is my testing program
# This is an error message
Beta Was this translation helpful? Give feedback.
All reactions