Closed aimfeld closed 2 months ago
It could be a certificate issue.
FWIW, the basic/mutual TLS support is tested with crt/key files: https://github.com/ClickHouse/clickhouse-js/blob/main/packages/client-node/__tests__/tls/tls.test.ts
The certificate buffers are passed to the agent as-is: https://github.com/ClickHouse/clickhouse-js/blob/main/packages/client-node/src/connection/node_https_connection.ts#L15-L17, no extra magic there.
After disabling SSL verification in our cluster, the error has been resolved. May be related to https://stackoverflow.com/questions/38658473/ssl-handshake-error-session-id-context-uninitialized
For the future purposes (an excerpt from the Slack thread related to this issue):
verificationMode
to none
fixed the issue (see the overview)
When running INSERT queries using clickhouse-js, we often get this error (when running the same queries using Datagrip, this error does not occur):
We checked the clickhouse-server.err.log, and we see corresponding errors like this:
It could be a network/SSL configuration problem in our clickhouse cluster, but maybe the error is related to clickhouse js somehow?
We establish the connection like this, using a .pem file: