: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): treat framer SERVER_BUSY as a retryable error (#117089)
Tom Owers682138a19985
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/framer/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/framer/source.pyindex 01d505b0a910..014240b681ea 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/framer/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/framer/source.py@@ -62,14 +62,15 @@ class FramerSource(SimpleSource[FramerSourceConfig]):def get_retryable_errors(self) -> set[str]:# Transient channel conditions the next Temporal attempt recovers from: a busy- # headless pool, a concurrent-session collision, a dropped connection, or an- # egress-proxy hiccup.+ # headless pool, a concurrent-session collision, a dropped connection, an+ # egress-proxy hiccup, or the server telling us it's overloaded.return {"Framer API error POOL_EXHAUSTED","Framer API error TOKEN_SESSION_LIMIT","Framer API error TIMEOUT","Framer API error CONNECTION_CLOSED","Framer API error PROXY",+ "Framer API error SERVER_BUSY",# The server also reports a dropped connection to its headless browser mid-navigation# as a generic `INTERNAL` code, so this one is matched on message text rather than# code — `INTERNAL` alone is too broad to classify as retryable.diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/framer/tests/test_framer_source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/framer/tests/test_framer_source.pyindex cb8f23cfcf46..817d3bc411d5 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/framer/tests/test_framer_source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/framer/tests/test_framer_source.py@@ -48,6 +48,7 @@ class TestFramerSource:[("Framer API error POOL_EXHAUSTED: busy",),("Framer API error INTERNAL: Navigation failed: connection",),+ ("Framer API error SERVER_BUSY: Framer is very busy right now. Please try again in a few minutes.",),])def test_transient_channel_errors_stay_retryable(self, observed_error: str) -> None: