ClickHouse / clickhouse-js

Official JS client for ClickHouse DB
https://clickhouse.com
Apache License 2.0
225 stars 27 forks source link

not work on https clickhouse #145

Closed alibeknow closed 1 year ago

alibeknow commented 1 year ago

Describe the bug

Steps to reproduce

  1. this.client = createClient(options);
  2. its work on http client, but not work in https client

Expected behaviour

Code example

Error log

Configuration

Environment

ClickHouse server

slvrtrn commented 1 year ago
  1. How do you create a client instance? Usually, it should work as
    const client = createClient({
    host: 'https://<hostname>:<port>',
    username: '<username>',
    password: '<password>',
    })
  2. Does your server require TLS? If so, please check out the certificates usage docs, and sample code for basic and mutual TLS.