Gitpulse
LatestReleasesStand-up
Merged
Size
XS
Extra Small: < 10 weighted lines
Change Breakdown
Bug Fix100%
#3204fix(webapp): strip secure param from query ClickHouse URL

ClickHouse query client startup crash fixed

ED
edosrecki
·Mar 11, 2026·#3204fix(webapp): strip secure param from query ClickHouse URL

Self-hosted Trigger.dev containers no longer crash on boot due to strict URL parameter validation in the ClickHouse client.

Self-hosted Trigger.dev environments crashed on startup when connecting to ClickHouse. The system's Docker entrypoint automatically injects a secure parameter into the database URL, which the ClickHouse query client rejected as an unknown parameter.

The query client initialization now strips this parameter before establishing the connection, matching the behavior of the system's other database clients. Docker deployments boot successfully without requiring manual overrides of the database connection strings.

View Original GitHub Description

Closes #3184

✅ Checklist

  • I have followed every step in the contributing guide
  • The PR title follows the convention.
  • I ran and tested the code works

Changelog

The initializeQueryClickhouseClient() function was missing the url.searchParams.delete("secure") call that the other two sibling ClickHouse client init functions already had. This caused a startup crash (Error: Unknown URL parameters: secure) when QUERY_CLICKHOUSE_URL fell back to CLICKHOUSE_URL which contains ?secure=false.

© 2026 · via Gitpulse