I am having an issue connecting to clickhouse in a windows docker container with python's driver. Clickhouse server is running on my E drive in a docker container exposed to port 8123. I can connect easily in R with this package https://github.com/hannesmuehleisen/clickhouse-r as so:
conn = DBI::dbConnect(clickhouse::clickhouse(),
host = "my_ip",
port = 8123L,
user = "myun",
password = "mypwd")
But when I attempt the same thing in python using https://clickhouse-driver.readthedocs.io/en/latest/quickstart.html I run into an issue:
from clickhouse_driver import Client
client = Client(host = 'my_ip',
port = '8123',
user='myun',
password='mypwd',
secure=True,
verify=False,
database='db_name')
print(client.execute('SELECT now()'))
File "d:\ProgramData\Anaconda3\lib\site-packages\clickhouse_driver\connection.py", line 249, in connect
'{} ({})'.format(e.strerror, self.get_description())
NetworkError: Code: 210. [SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:777) (my_ip:8123)
Anyone know what the issue might be?
Update:
attempted secure = F and got:
File "d:\ProgramData\Anaconda3\lib\site-packages\clickhouse_driver\connection.py", line 243, in connect
'{} ({})'.format(e.strerror, self.get_description())
SocketTimeoutError: Code: 209. None