Skip to content

I really don't know how to solve this problem #263

Answered by davidpdrsn
NOVA-ME asked this question in Q&A
Discussion options

You must be logged in to vote

Try to isolate which part of the function makes it not work

  • Replace the body of the function with todo!().
  • If that works then try and remove each of the lines until you find which line might be causing it. Note that handlers must return futures that are Send, but that doesn't seem to be an issue here.
  • If it doesn't work then try changing the return type to simply () or (StatusCode, HeaderMap, Vec<u8>). Maybe AppResult's error type doesn't implement IntoResponse?

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
9 replies
@NOVA-ME
Comment options

@davidpdrsn
Comment options

@NOVA-ME
Comment options

@mineralres
Comment options

@davidpdrsn
Comment options

Answer selected by davidpdrsn
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #262 on August 24, 2021 14:27.