< 返回版块

ngugcx 发表于 2019-12-09 11:24

thread 'main' panicked at 'called Result::unwrap() on an Err value: Error(Hyper(Error(Connect, Custom { kind: Other, error: Ssl(Error { code: ErrorCode(1), cause: Some(Ssl(ErrorStack([Error { code: 337047686, library: "SSL routines", function: "tls_process_server_certificate", reason: "certificate verify failed", file: "ssl/statem/statem_clnt.c", line: 1915 }]))) }, X509VerifyResult { code: 62, error: "Hostname mismatch" }) })), "https://134867_coloc.xyz.com/v1/market/depth?market=bchbtc&limit=5&merge=0")', src/libcore/result.rs:1165:5

https://134867_coloc.xyz.com/v1/market/depth?market=bchbtc&limit=5&merge=0

注:134867_coloc.xyz.com,这个域名解析出来是aws的内部地址,外面访问不了。

在我的aws服务器上用python requests, curl访问都好好的。 用rust reqwest就出了上面的错。

我把trace打开:export RUST_LOG="trace"。 没看到tls握手的日志。

不知道从哪下手了。

评论区

写评论
作者 ngugcx 2019-12-09 11:48

surf可以。 但reqwest没有握手的日志,没法对比。

对以下内容的回复:

Mike Tang 2019-12-09 11:29

用 surf 或 curl 先试一下呢?对比看一下。

1 共 2 条评论, 1 页