-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Labels
bugSomething isn't workingSomething isn't working
Description
I have a clickhouse instance running behind haproxy, which is doing SSL termination. I can connect to clickhouse and run queries using curl, it just won't work with clickhouse4j. To test, I used dBeaver and I can also connect to HTTPS using dBeaver and the official clickhouse driver and this works. But if I try to connect using clickhouse4j - same connection settings, just different driver, I get a Your browser sent an invalid request. message. This is the same result I am seeing in my java code. Note that my SSL cert is valid and there are no server name / ssl type issues.
curl http works
> curl 'http://xxx.xxxx.com:8123/?user=default&password=xxxxxxxxxxx&' --data-binary "SELECT timezone()"
Etc/UCT
curl https works
> curl 'https://xxx.xxxx.com:8443//?user=default&password=xxxxxxxxxxx&' --data-binary "SELECT timezone()"
Etc/UCT
dBeaver + official driver https works
I can connect to HTTPS using dBeaver and the official clickhouse driver:

dBeaver + clickhouse4j driver does not work
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
