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-imports): retry framer navigation connection errors (#115170)

Tom Owers9d38dfce5618
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.py
index 86e9c1d5e53e..400772c54662 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
@@ -67,6 +67,10 @@ class FramerSource(SimpleSource[FramerSourceConfig]):
"Framer API error TIMEOUT",
"Framer API error CONNECTION_CLOSED",
"Framer API error PROXY",
+ # 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.
+ "Navigation failed: connection",
}
def get_canonical_descriptions(self) -> CanonicalDescriptions:
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.py
index 8848781fe7d0..cb8f23cfcf46 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
@@ -44,7 +44,12 @@ class TestFramerSource:
logger=inputs.logger,
)
- def test_pool_exhausted_stays_retryable(self) -> None:
- observed_error = "Framer API error POOL_EXHAUSTED: busy"
+ @parameterized.expand(
+ [
+ ("Framer API error POOL_EXHAUSTED: busy",),
+ ("Framer API error INTERNAL: Navigation failed: connection",),
+ ]
+ )
+ def test_transient_channel_errors_stay_retryable(self, observed_error: str) -> None:
assert not any(key in observed_error for key in FramerSource().get_non_retryable_errors())
assert any(key in observed_error for key in FramerSource().get_retryable_errors())