ToolJet/ToolJet · error · Error
Invalid credentials
Error message
Invalid credentials
What it means
Error "Invalid credentials" thrown in ToolJet/ToolJet.
Source
Thrown at plugins/packages/clickhouse/lib/index.ts:63
});
result = { r:1 }; //for backward compatibility
break;
}
}
} catch (error) {
throw new QueryError('Query could not be completed', error.message, {});
}
return {
status: 'ok',
data: result,
};
}
async testConnection(sourceOptions: SourceOptions): Promise<ConnectionTestResult> {
const clickhouse = await this.getConnection(sourceOptions);
if (!clickhouse) {
throw new Error('Invalid credentials');
}
const resultSet = await clickhouse.query({
query: 'SHOW DATABASES',
format: 'JSON',
});
await resultSet.json();
return {
status: 'ok',
};
}
async getConnection(sourceOptions: SourceOptions): Promise<any> {
const { port, host, protocol, database, username, password } = sourceOptions;
const url = `${protocol}://${host}:${port}`;
const clickhouse = createClient({
host: url,
username: username || 'default',View on GitHub (pinned to 20602a8e10)
Solutions
- Provide valid ClickHouse credentials so a client connection can be created.
- Verify host/port and TLS settings for the ClickHouse server.
Example fix
Correct the ClickHouse host/credentials in the data source and re-test the connection.
When it happens
Trigger: ClickHouse rejects the configured username/password or the credentials are missing.
Common situations: Defend by requiring username and password in source options and testing them at connection time.
Understand the failure class
- Authentication and authorization failures — expired tokens, bad credentials, and missing scopes.
AI-assisted analysis of ToolJet/ToolJet@20602a8e10 (2026-08-13).
Data as JSON: /api/errors/83d86ce82f375ab4.
Report an issue: GitHub.