Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(clickhouse-cloud): say what to do when the API key is rejected (#95742)

Tom Owersa7908de07d61
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/clickhouse_cloud/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/clickhouse_cloud/source.py
index becbe1236246..7e8ed1b2d912 100644
--- a/products/warehouse_sources/backend/temporal/data_imports/sources/clickhouse_cloud/source.py
+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/clickhouse_cloud/source.py
@@ -127,7 +127,10 @@ Generate an API key from your [ClickHouse Cloud console](https://console.clickho
if validate_clickhouse_cloud_credentials(config.key_id, config.key_secret):
return True, None
- return False, "Invalid ClickHouse Cloud API key ID or secret"
+ return False, (
+ "Your ClickHouse Cloud API key was rejected. Check the key ID and secret, or create a new key "
+ "in your ClickHouse Cloud console, then reconnect."
+ )
def get_resumable_source_manager(self, inputs: SourceInputs) -> ResumableSourceManager[ClickhouseCloudResumeConfig]:
return ResumableSourceManager[ClickhouseCloudResumeConfig](inputs, ClickhouseCloudResumeConfig)