fix(webapp): strip secure param from query ClickHouse URL (#3204)

This commit is contained in:
Dinko Osrecki
2026-03-11 07:42:49 +01:00
committed by GitHub
parent fef6d18e8f
commit b8766e7a27
2 changed files with 9 additions and 0 deletions
@@ -0,0 +1,6 @@
---
area: webapp
type: fix
---
Strip `secure` query parameter from QUERY_CLICKHOUSE_URL before passing to ClickHouse client. This was already done for the main and logs ClickHouse clients but was missing for the query client, causing a startup crash with `Error: Unknown URL parameters: secure`.
@@ -83,6 +83,9 @@ function initializeQueryClickhouseClient() {
const url = new URL(env.QUERY_CLICKHOUSE_URL);
// Remove secure param
url.searchParams.delete("secure");
return new ClickHouse({
url: url.toString(),
name: "query-clickhouse",