: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(data-imports): stop retrying non-recoverable Fillout 400s (#107910)
Tom Owersc298eda5f534
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/fillout/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/fillout/source.pyindex 8d3b91e4e991..3a44720dab19 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/fillout/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/fillout/source.py@@ -92,6 +92,11 @@ You can generate an API key in your Fillout account under **Settings → Developreturn {"401 Client Error": "Invalid Fillout API key. Please update your key and reconnect.","403 Client Error": "Fillout API key is missing the required permissions. Please update the key and reconnect.",+ # A 400 replays identically on every retry, unlike 401 (a key the REST engine's own+ # retry can't fix, but that's already caught above) or 429/5xx (already+ # RESTClientRetryableError). Matched on both regional hosts, same as the 401/403 entries.+ "400 Client Error: Bad Request for url: https://api.fillout.com": "Fillout rejected the request. Check that the API key can access this form, then reconnect. If this keeps happening, contact support.",+ "400 Client Error: Bad Request for url: https://eu-api.fillout.com": "Fillout rejected the request. Check that the API key can access this form, then reconnect. If this keeps happening, contact support.",}def get_schemas(diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/fillout/tests/test_fillout_source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/fillout/tests/test_fillout_source.pyindex 300e47229420..70e73692c031 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/fillout/tests/test_fillout_source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/fillout/tests/test_fillout_source.py@@ -45,9 +45,11 @@ class TestFilloutSource:["401 Client Error: Unauthorized for url: https://api.fillout.com/v1/api/forms","403 Client Error: Forbidden for url: https://api.fillout.com/v1/api/forms",+ "400 Client Error: Bad Request for url: https://api.fillout.com/v1/api/forms/abc123/submissions?limit=150&offset=0&sort=asc",+ "400 Client Error: Bad Request for url: https://eu-api.fillout.com/v1/api/forms/abc123/submissions?limit=150&offset=0&sort=asc",],)- def test_non_retryable_errors_match_auth_failures(self, observed_error: str) -> None:+ def test_non_retryable_errors_match_known_failures(self, observed_error: str) -> None:non_retryable = self.source.get_non_retryable_errors()assert any(key in observed_error for key in non_retryable)