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): clarify error when source URL points at internal bucket (#73533)

Tom Owersbcefea1153d2
diff --git a/products/data_warehouse/backend/presentation/views/table.py b/products/data_warehouse/backend/presentation/views/table.py
index f472d52a0faa..0f2a8a04c6e6 100644
--- a/products/data_warehouse/backend/presentation/views/table.py
+++ b/products/data_warehouse/backend/presentation/views/table.py
@@ -238,7 +238,10 @@ class TableSerializer(UserAccessControlSerializerMixin, serializers.ModelSeriali
def validate_url_pattern(self, url_pattern):
s3_domain = settings.DATAWAREHOUSE_BUCKET_DOMAIN
if s3_domain in url_pattern:
- raise serializers.ValidationError("Cant use this bucket")
+ raise serializers.ValidationError(
+ "This URL points to PostHog's internal storage and can't be used as a source. "
+ "Enter the location of your own bucket instead."
+ )
is_valid, error_message = validate_warehouse_table_url_pattern(url_pattern)
if not is_valid: