You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you could put a similar conditional before making the http.request - to use either http.request or https.request implementation based on params.url - in the following line it would solve the problem we're experiencing
Describe the bug
When attempting to use a http proxy to then subsequently hit a https Clickhouse endpoint (like Clickhouse Cloud) we get the error:
This is because there is no conditional to use the correct
http(s).request
impl for the specified url in NodeCustomAgentConnection.This problem doesn't exist when not using a custom http_agent due to the code found here
clickhouse-js/packages/client-node/src/connection/create_connection.ts
Line 35 in a15cce9
If you could put a similar conditional before making the
http.request
- to use eitherhttp.request
orhttps.request
implementation based onparams.url
- in the following line it would solve the problem we're experiencingclickhouse-js/packages/client-node/src/connection/node_custom_agent_connection.ts
Line 25 in a15cce9
The text was updated successfully, but these errors were encountered: