clickhouse-rs icon indicating copy to clipboard operation
clickhouse-rs copied to clipboard

Panic in ClientHandle.hello : called `Option::unwrap()` on a `None` value

Open gaspb opened this issue 1 year ago • 1 comments

Hi, We have a test case spawning a clickhouse container (23.12.1-alpine) via testcontainer and trying to connect shortly after via Pool::get_handle

It sometimes panic at this line : https://github.com/suharev7/clickhouse-rs/blob/async-await/src/lib.rs#L327

Should it return an error instead of unwrapping ?

gaspb avatar Jan 17 '24 22:01 gaspb

You might be using this library and attempting to connect to the server via the HTTP protocol (Port 8123), but you should use the clickhouse-client protocol (Port 9000) to connect.

nlimpid avatar May 28 '24 04:05 nlimpid