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(data-warehouse): give actionable copy for an invalid Clockify API key (#75498)

Tom Owers327936083ef3
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/clockify/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/clockify/source.py
index 04271ccd096b..36e981551596 100644
--- a/products/warehouse_sources/backend/temporal/data_imports/sources/clockify/source.py
+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/clockify/source.py
@@ -111,7 +111,10 @@ The key is user-scoped — it can read exactly what your Clockify user can. Use
if validate_clockify_credentials(config.api_key):
return True, None
- return False, "Invalid Clockify API key"
+ return (
+ False,
+ "Your Clockify API key is invalid or has been revoked. Generate a new key in your Clockify profile settings, then reconnect.",
+ )
def get_resumable_source_manager(self, inputs: SourceInputs) -> ResumableSourceManager[ClockifyResumeConfig]:
return ResumableSourceManager[ClockifyResumeConfig](inputs, ClockifyResumeConfig)