Replies: 1 comment
-
Hi -- Sorry for the delayed response. I don't have enough experience with Axum extensions or middleware to know whether extensions would behave differently from any other extractor in this situation. That said, the error message here doesn't have to do with the extractor itself, and it would actually bail out before the extractor even runs. I have not seen reports of similar issues, so you may be looking in the wrong place. (For example, are you using a custom handler or something similar that doesn't provide I'm happy to look at a minimal reproduction at some point if you have one, but I don't think there's much more I can say than the above for now. |
Beta Was this translation helpful? Give feedback.
-
Good day,
I looked everywhere I could, but could not find an answer.
Hopefully this is a problem on my side and not one on the framework, or its already fixed in 7.1.
I am attempting to retrieve in a handler a user that was extracted from my database in my middlewear.
In axum I could do it this way (per their documentation) :
So, based on this example and the section on extractors in the leptos book, I would expect this pattern to work.
What I get as a result is : "should have had Parts provided by the leptos_axum integration" that I can be found in :
leptos/integrations/axum/src/lib.rs
Line 1972 in f9533ab
Am I missing something ?
Thanks for your time,
Beta Was this translation helpful? Give feedback.
All reactions