do not expect/unwrap requests
causes tokio runtime worker to panic as we attempt to convert an HTTP Request from ruma (try_into_http_request) into a reqwest Request so the reqwest http client on the server can execute said request. error message is not ideal ("invalid port number") but core issue is fixed. Co-authored-by: infamous <ehuff007@gmail.com> Signed-off-by: girlbossceo <june@girlboss.ceo>
This commit is contained in:
parent
8b28225af9
commit
95187419f9
1 changed files with 1 additions and 2 deletions
|
@ -234,8 +234,7 @@ where
|
|||
}
|
||||
}
|
||||
|
||||
let reqwest_request = reqwest::Request::try_from(http_request)
|
||||
.expect("all http requests are valid reqwest requests");
|
||||
let reqwest_request = reqwest::Request::try_from(http_request)?;
|
||||
|
||||
let url = reqwest_request.url().clone();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue