Skip to content

Trouble with Missing Request Extension for ScyllaDB Session in Axum #2158

Answered by davidpdrsn
Grifed-source asked this question in Q&A
Discussion options

You must be logged in to vote

You’re either not adding the extension or extracting an extension with the wrong type. In the code you posted you don’t add the extension anywhere. You need to use https://docs.rs/axum/0.6.20/axum/struct.Extension.html

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Grifed-source
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