: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(warehouse-sources): mark convex union-schema error as non-retryable (#128086)
Tom Owers29518cedc7dc
diff --git a/products/warehouse_sources/sources/convex/source.py b/products/warehouse_sources/sources/convex/source.pyindex f92ef0e5aac2..e9d359820226 100644--- a/products/warehouse_sources/sources/convex/source.py+++ b/products/warehouse_sources/sources/convex/source.py@@ -140,6 +140,15 @@ You can find your deployment URL and deploy key in your [Convex Dashboard](https"turn off syncing for this table, then re-enable the sync."),"StreamingExportNotEnabled": "Streaming export requires the Convex Professional plan. See https://www.convex.dev/plans to upgrade.",+ # get_json_schemas fetches every table's schema in one call, so a single table whose+ # schema has a union of object types fails discovery for the whole deployment, not+ # just that table. Convex's export API doesn't support this shape at all, so every+ # retry resubmits the same deployment schema and fails identically - only a schema+ # change on the Convex side can clear it.+ "UnsupportedSchemaForExport": (+ "A table in this Convex deployment has a schema Convex can't export (a union of "+ "object types). Change that field's type in your Convex schema, then retry."+ ),# A deploy key that cannot be encoded into an Authorization header is rejected before# any request leaves PostHog, so every retry rebuilds the same unsendable request. The# user has to re-enter the key, which makes this a credential error rather than a blip.diff --git a/products/warehouse_sources/sources/convex/tests/test_convex.py b/products/warehouse_sources/sources/convex/tests/test_convex.pyindex 97127a878253..a69e9da79e2c 100644--- a/products/warehouse_sources/sources/convex/tests/test_convex.py+++ b/products/warehouse_sources/sources/convex/tests/test_convex.py@@ -354,6 +354,10 @@ class TestConvexNonRetryableErrors:"Your deploy key contains characters PostHog can't send to Convex. ""Copy the key again from your Convex dashboard, then try again.",),+ (+ "unsupported_schema_for_export",+ "UnsupportedSchemaForExport: Schema contains a union of objects, which is not supported for export",+ ),])def test_known_errors_match(self, _name: str, observed_error: str) -> None: