<#1177 fix: filter ConnectError(UNIMPLEMENTED) fro...
# flyte-github
a
#1177 fix: filter ConnectError(UNIMPLEMENTED) from Sentry Pull request opened by EngHabu Summary Filters
ConnectError(UNIMPLEMENTED)
out of Sentry crash reporting. A raw HTTP 404 from the control-plane ingress — wrong endpoint config, a missing/unrouted RPC, or backend/SDK version skew — is mapped by the connect protocol to
Code.UNIMPLEMENTED
(404 →
unimplemented
), not
NOT_FOUND
. During the `flyte run`/`flyte deploy` upload path it surfaces as:
Copy code
ConnectError(UNIMPLEMENTED, "Not Found")            # connectrpc validate_response, raw 404
  -> RuntimeError("SelectCluster failed for operation=1: Not Found")
    -> RuntimeSystemError("Upload failed for .../spec.pb (org=...): Not Found")
and leaked into Sentry as if it were an SDK crash (FLYTE-SDK-4F, recurring on the latest 2.4.x SDK). The Python SDK cannot recover from a 404 on the RPC route, so
UNIMPLEMENTED
joins the other client/infra codes in
_USER_ACTIONABLE_CONNECT_CODES
. `INTERNAL`/`UNKNOWN` remain reported — they can still indicate a real backend or SDK bug. Test Adds
test_capture_exception_skips_connect_error_unimplemented_wrapped_as_system_error
, reproducing the exact
ConnectError(UNIMPLEMENTED) -> RuntimeError -> RuntimeSystemError
chain from the Sentry event. Full
tests/flyte/test_sentry.py
suite passes (33 tests). fixes FLYTE-SDK-4F 🤖 Generated with Claude Code flyteorg/flyte-sdk