Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .server-changes/fix-clickhouse-query-client-secure-param.md
Original file line number Diff line number Diff line change
@@ -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`.
3 changes: 3 additions & 0 deletions apps/webapp/app/services/clickhouseInstance.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down