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): make ElevenLabs invalid-key error actionable at connect time (#79325)

Tom Owers38472ae35a42
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/elevenlabs/elevenlabs.py b/products/warehouse_sources/backend/temporal/data_imports/sources/elevenlabs/elevenlabs.py
index 759305247805..9265159f17e2 100644
--- a/products/warehouse_sources/backend/temporal/data_imports/sources/elevenlabs/elevenlabs.py
+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/elevenlabs/elevenlabs.py
@@ -159,7 +159,11 @@ def validate_credentials(api_key: str, schema_name: Optional[str] = None) -> tup
if status == 200:
return True, None
if status == 401:
- return False, "Invalid ElevenLabs API key"
+ return (
+ False,
+ "Your ElevenLabs API key is invalid or has been revoked. Create a new key in your "
+ "ElevenLabs account settings, then try again.",
+ )
if status == 403:
if schema_name is None:
return True, None