-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug][android] https request failed with handshakefailure #6770
Comments
is this the same reason causes such an error? |
Now I am sure it IS the SSL configuration on the server side causes this error, because I took a try to post to https://www.google.com the request done we'll and got namal responses |
Does tauri2.0 uses rustls for ssl? And the rustls does'nt support the weak or insecure ciphers such as |
For my part it was something with rust being stricter with the ssl certificate and the default cipher did not make the cut. I had to do this. // cargo.toml // lib.rs
Note: Im new to rust and java so i don't know much about it. I just found it out by reading lots and lots of stuff. Got also help from https://stackoverflow.com/questions/77825270/rust-reqwest-with-certificate-and-key-fails-to-be-authorised |
Describe the bug
I used tauri::api::http::ClientBuilder and HttpRequestBuilder::new("POST", "https://...") to make a https request ,but i got this:
04-22 11:36:05.537 31981 32013 I RustStdoutStderr: thread 'tokio-runtime-worker' panicked at 'called
Result::unwrap()
on anErr
value: Network(reqwest::Error { kind: Request, url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("www.zhibei.biz")), port: None, path: "/tauri/marqo.jsp", query: None, fragment: None }, source: hyper::Error(Connect, Custom { kind: Other, error: Custom { kind: InvalidData, error: AlertReceived(HandshakeFailure) } }) })', src\lib.rs:24:1304-22 11:36:05.538 31981 32013 I RustStdoutStderr: note: run with
RUST_BACKTRACE=1
environment variable to display a backtraceBUT,after changed the URL to http://... everything is ok!!!!!
Reproduction
No response
Expected behavior
No response
Platform and versions
Stack trace
Additional context
No response
The text was updated successfully, but these errors were encountered: