diff --git a/integrations/actix/src/lib.rs b/integrations/actix/src/lib.rs index 4eae047e4c..c0cb6f8926 100644 --- a/integrations/actix/src/lib.rs +++ b/integrations/actix/src/lib.rs @@ -1579,7 +1579,10 @@ where ServerFnError::new("HttpRequest should have been provided via context") })?; - T::extract(&req) - .await - .map_err(|e| ServerFnError::ServerError(e.to_string())) + SendWrapper::new(async move { + T::extract(&req) + .await + .map_err(|e| ServerFnError::ServerError(e.to_string())) + }) + .await }