suharev7 / clickhouse-rs

Asynchronous ClickHouse client library for Rust programming language.
MIT License
322 stars 119 forks source link

"Driver error: `Unknown packet 0x48.`" #205

Open alexanderspevak opened 10 months ago

alexanderspevak commented 10 months ago

I am having trouble connecting to clickhouse running locally in docker image. I am using version "1.0.0-alpha.1". I get following error:

Error: Io(Custom { kind: Other, error: "Driver error: `Unknown packet 0x48.`" })

when calling this part of code:

    let pool = Pool::new("tcp://localhost:8124?compression=lz4");
    let mut client = pool.get_handle().await?;
suharev7 commented 10 months ago

Try to use tcp://localhost:9000?compression=lz4

alexanderspevak commented 10 months ago

yes, its working now, but its bypassing chproxy

Screenshot 2023-11-02 at 7 48 01
suharev7 commented 10 months ago

clickhouse-rs works with binary protocol (by default port: 9000) and chproxy works with HTTP protocol (by default port: 8123), so: