-
Notifications
You must be signed in to change notification settings - Fork 84
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
HTTPS url throws error #58
Comments
I have the same error. |
I was facing the same issue and solved it using my own const POOL_IDLE_TIMEOUT: Duration = Duration::from_secs(2);
let https = HttpsConnector::new();
let client = hyper::Client::builder()
.pool_idle_timeout(POOL_IDLE_TIMEOUT)
.build::<_, hyper::Body>(https);
let db = Client::with_http_client(client)
.with_url(db_host)
.with_user(db_username)
.with_password(db_password)
.with_database(db_name); Make sure you have the following depends: hyper = "0.14"
hyper-tls = "0.5" |
@eabz used the same workaround for now, ty |
I saw a pr merged like 2 years ago fixing this issue was it reverted for some reason ? |
@eabz thanks a lot. |
The issue seems to stem from the fact that |
It's a shame that this issue has existed for too long. It's better to have some fixes, even without checks in CI. I've created a dedicated issue for CI after spending half an hour trying to do it during this one. Thanks to @MasterPtato for the direct tip. It seems to fix the problem. My company doesn't use CH with HTTPs for now, so I'll be glad if someone can check this fix in an actual setup. Another question is whether TLS error should have another variant in |
Released in v0.11.6 |
I've looked into the PRs and https urls should work, but I'm still getting an error. Double checked that the
tls
feature is enabled:This happens when executing a query:
Am I doing something wrong or is this a bug?
The text was updated successfully, but these errors were encountered: