: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(notion): stop tracking self-recovering SSL/connection drops as noise (#78638)
Tom Owers5686dd301a72
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/notion/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/notion/source.pyindex f426aa5c9a2c..5100f6afa2c7 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/notion/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/notion/source.py@@ -64,6 +64,12 @@ class NotionSource(ResumableSource[NotionSourceConfig, NotionResumeConfig]):# cause (TLS EOF, refused connection, timeout), so match that stable prefix rather# than the per-request URL or nested error id."Max retries exceeded with url",+ # Defensive fallback for the mid-TLS-handshake drop: the same self-recovering condition+ # ClickHouse already classifies this way. These stable OpenSSL SSLEOFError strings sit+ # inside the MaxRetryError message above, so match them too and the SSL EOF case stays+ # recognized even if that outer wrapper ever changes.+ "UNEXPECTED_EOF_WHILE_READING",+ "EOF occurred in violation of protocol",}@propertydiff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/notion/tests/test_notion_source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/notion/tests/test_notion_source.pyindex f4bf08590d8e..6e6b3817464e 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/notion/tests/test_notion_source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/notion/tests/test_notion_source.py@@ -161,9 +161,9 @@ class TestNotionSource:"Notion rate limited: url=https://api.notion.com/v1/comments, retry_after=33.0",),(- "dropped_connection_after_tenacity_exhausted",+ "ssl_eof_after_tenacity_exhausted","HTTPSConnectionPool(host='api.notion.com', port=443): Max retries exceeded with url: "- "/v1/comments?block_id=abc&page_size=100 (Caused by SSLError(SSLEOFError(8, "+ "/v1/blocks/abc123/children?page_size=100 (Caused by SSLError(SSLEOFError(8, ""'[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1032)')))",),(