Skip to content

returning json - Handler<_, _> is not implemented #641

Answered by jplatte
yatesco asked this question in Q&A
Discussion options

You must be logged in to vote

If you run into Handler<_, _> is not implemented errors, enable axum's macros feature and annotate your handler with #[axum::debug_handler]. It will give you much better error messages. In this case it looks like you simply forgot to make your handler function async.

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
5 replies
@yatesco
Comment options

@ScottLinnn

This comment has been hidden.

@davidpdrsn

This comment has been hidden.

@ScottLinnn

This comment has been hidden.

@jplatte
Comment options

Answer selected by davidpdrsn
Comment options

You must be logged in to vote
2 replies
@jplatte
Comment options

@mustafa-ans
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants