-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
reqwest version: 0.11
tokio version: 1
when i call api occurl error:
Error: reqwest::Error { kind: Request, url: Url { scheme: "http", host: Some(Ipv4(127.0.0.1)), port: Some(8080), path: "/v2/api-docs", query: None, fragment: None }, source: hyper::Error(IncompleteMessage) }
i use postman return data size=89.55kb
source code
const SCAN_URL: &'static str= "http://127.0.0.1:8080/v2/api-docs";
#[tokio::main]
async fn main()->Result<(),Box<dyn std::error::Error>> {
let res=reqwest::get(SCAN_URL)
.await?;
Ok(())
}
Metadata
Metadata
Assignees
Labels
No labels