Skip to content

bug: Unknown URL parameters: secure in trigger container #3184

Closed

Description

@IRediTOTO

Provide environment information

+ NODE_PATH=/triggerdotdev/node_modules/.pnpm/node_modules exec dumb-init node --max-old-space-size=1024 ./build/server.js
/triggerdotdev/node_modules/.pnpm/@clickhouse+client-common@1.12.1/node_modules/@clickhouse/client-common/dist/config.js:267
            throw new Error(`Unknown URL parameters: ${Array.from(unknownParams).join(', ')}`);
            ^
Error: Unknown URL parameters: secure
    at loadConfigOptionsFromURL (/triggerdotdev/node_modules/.pnpm/@clickhouse+client-common@1.12.1/node_modules/@clickhouse/client-common/dist/config.js:267:19)
    at prepareConfigWithURL (/triggerdotdev/node_modules/.pnpm/@clickhouse+client-common@1.12.1/node_modules/@clickhouse/client-common/dist/config.js:42:34)
    at new ClickHouseClient (/triggerdotdev/node_modules/.pnpm/@clickhouse+client-common@1.12.1/node_modules/@clickhouse/client-common/dist/client.js:59:65)
    at createClient (/triggerdotdev/node_modules/.pnpm/@clickhouse+client@1.12.1/node_modules/@clickhouse/client/dist/client.js:15:12)
    at new ClickhouseClient (/triggerdotdev/apps/webapp/build/index.js:47980:243)
    at new ClickHouse (/triggerdotdev/apps/webapp/build/index.js:61386:21)
    at initializeQueryClickhouseClient (/triggerdotdev/apps/webapp/build/index.js:81619:10)
    at singleton (/triggerdotdev/apps/webapp/build/index.js:22636:85)
    at Object.<anonymous> (/triggerdotdev/apps/webapp/build/index.js:81611:29)
    at Module._compile (node:internal/modules/cjs/loader:1521:14)
Node.js v20.20.0

Describe the bug

Problem is trigger auto add param ?secure=true/false to the Click house URL in the file triggerdotdev/trigger.dev/docker/scripts/entrypoint.sh

Reproduction repo

https://github.dev/triggerdotdev/trigger.dev

To reproduce

Problem is trigger auto add param ?secure=true/false to the Click house URL in the file triggerdotdev/trigger.dev/docker/scripts/entrypoint.sh

Additional information

No response

Activity

  1. mangit955 commented on Mar 7, 2026

    @mangit955

    Hi !
    I implemented a fix for this issue and opened PR #3190.

    The PR was automatically closed because I’m not yet a vouched contributor.
    Would it be possible for a maintainer to vouch for me so I can reopen the PR?

    I reproduced the issue using the Docker setup and verified that removing the automatic secure=true injection resolves the Unknown URL parameters: secure error.

  2. edosrecki commented on Mar 9, 2026

    @edosrecki
    Contributor

    Actual bug is here:

    function initializeQueryClickhouseClient() {
    if (!env.QUERY_CLICKHOUSE_URL) {
    throw new Error("QUERY_CLICKHOUSE_URL is not set");
    }
    const url = new URL(env.QUERY_CLICKHOUSE_URL);
    return new ClickHouse({
    url: url.toString(),
    name: "query-clickhouse",
    keepAlive: {
    enabled: env.CLICKHOUSE_KEEP_ALIVE_ENABLED === "1",
    idleSocketTtl: env.CLICKHOUSE_KEEP_ALIVE_IDLE_SOCKET_TTL_MS,
    },
    logLevel: env.CLICKHOUSE_LOG_LEVEL,
    compression: {
    request: true,
    },
    maxOpenConnections: env.CLICKHOUSE_MAX_OPEN_CONNECTIONS,
    });
    }

    It doesn't remove secure query parameter from the URL unlike two initialization functions before it. Therefore it gets passed to the Clickhouse client.

    Quickest fix is to extendhosting/docker/webapp/docker-compose.yml and add after this line

    CLICKHOUSE_URL: ${CLICKHOUSE_URL:-http://default:password@clickhouse:8123?secure=false}
    :

    QUERY_CLICKHOUSE_URL: ${QUERY_CLICKHOUSE_URL:-http://default:password@clickhouse:8123}
    

    See #3199

  3. added a commit that references this issue on Mar 9, 2026
    3efcdf5
  4. added a commit that references this issue on Mar 10, 2026
  5. IRediTOTO commented on Mar 10, 2026

    @IRediTOTO
    Author

    I must assign a HTTPS url to make it work

    Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions