Skip to content

Missing request extension (500) when passing state from middleware fn to handler, similar to example. #2071

Answered by jifalops
jifalops asked this question in Q&A
Discussion options

You must be logged in to vote

The line does print:

debug!("middleware: adding user to request extensions");

On mobile now, will add runnable example later.

Edit: It must be in CurrentUser::new(), which takes a json Value and does some parsing.

Replies: 1 comment 2 replies

Comment options

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

Answer selected by jifalops
@jifalops
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
2 participants
Converted from issue

This discussion was converted from issue #2070 on July 02, 2023 18:06.