: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): strip leaked exception class name from non-retryable sync error (#81762)
Tom Owers1addf10d6f8c
diff --git a/products/warehouse_sources/backend/temporal/data_imports/external_data_job.py b/products/warehouse_sources/backend/temporal/data_imports/external_data_job.pyindex 486b59b147d6..c3da09d60869 100644--- a/products/warehouse_sources/backend/temporal/data_imports/external_data_job.py+++ b/products/warehouse_sources/backend/temporal/data_imports/external_data_job.py@@ -871,7 +871,10 @@ class ExternalDataJobWorkflow(PostHogWorkflow):elif isinstance(e.cause, exceptions.ApplicationError) and e.cause.type == "NonRetryableException":update_inputs.status = ExternalDataJob.Status.FAILEDupdate_inputs.internal_error = str(e.cause.cause)- update_inputs.latest_error = str(e.cause.cause)+ # `_customer_facing_error` here too (like the else branch): a non-retryable error whose+ # friendly mapping is None keeps its raw message, and the finalization activity won't+ # overwrite it — so `str(e.cause.cause)` would leak the wrapped exception class name.+ update_inputs.latest_error = _customer_facing_error(e.cause.cause)raiseelse:# Handle other activity errors normally