<#1199 fix: filter OSError(EADDRINUSE) from PKCE c...
# flyte-github
a
#1199 fix: filter OSError(EADDRINUSE) from PKCE callback bind as user environment error Pull request opened by EngHabu The PKCE authenticator opens a local OAuth callback server (
pkce.py::_create_callback_server
) that binds the redirect-URI port via
asyncio.start_server
. When that port is already in use — a stale or concurrent login flow, or another local process holding it — bind raises
OSError(EADDRINUSE)
("[Errno 98] address already in use"), which leaks to Sentry either bare or wrapped as
RuntimeSystemError("Failed to get signed url...")
. The redirect-URI port comes from the backend config, so the SDK cannot pick a different one; freeing the port is a user-environment action, not an SDK bug. Change • Add
errno.EADDRINUSE
to
_USER_ENVIRONMENT_OSERROR_ERRNOS
in
flyte/_sentry.py
so the cause-chain walk in
_is_user_error
filters it, same as
ENOSPC
. • Test covers both the bare and
RuntimeSystemError
-wrapped chain. fixes FLYTE-SDK-53 fixes FLYTE-SDK-57 šŸ¤– Generated with Claude Code flyteorg/flyte-sdk