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): actionable copy for invalid Airtable token (#74728)

Tom Owers49c3f603f01b
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/airtable/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/airtable/source.py
index 1361805f3fb2..ae11ffd33cb1 100644
--- a/products/warehouse_sources/backend/temporal/data_imports/sources/airtable/source.py
+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/airtable/source.py
@@ -96,7 +96,10 @@ Create a personal access token at [airtable.com/create/tokens](https://airtable.
if validate_airtable_credentials(config.personal_access_token):
return True, None
- return False, "Invalid Airtable personal access token"
+ return (
+ False,
+ "Invalid Airtable personal access token. Check that the token is correct and has access to the bases you want to sync, then try again.",
+ )
def source_for_pipeline(self, config: AirtableSourceConfig, inputs: SourceInputs) -> SourceResponse:
return airtable_source(
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/airtable/tests/test_airtable_source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/airtable/tests/test_airtable_source.py
index 1c58abb68dc6..3f0471106b05 100644
--- a/products/warehouse_sources/backend/temporal/data_imports/sources/airtable/tests/test_airtable_source.py
+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/airtable/tests/test_airtable_source.py
@@ -94,7 +94,11 @@ class TestAirtableSource:
"mock_return, expected_valid, expected_message",
[
(True, True, None),
- (False, False, "Invalid Airtable personal access token"),
+ (
+ False,
+ False,
+ "Invalid Airtable personal access token. Check that the token is correct and has access to the bases you want to sync, then try again.",
+ ),
],
)
@mock.patch(