github-actions[bot] opened a new pull request, #76193: URL: https://github.com/apache/airflow/pull/76193
When airflowctl attempts to connect to an unreachable or firewalled API server, httpx raises ConnectTimeout rather than ConnectError. Because operations only handled ConnectError and safe_call_command only caught ReadTimeout, connection timeouts, pool timeouts, and write timeouts escaped with raw Python tracebacks. Catching ConnectTimeout in operation calls translates it into a standard AirflowCtlConnectionException, matching the behavior of connection refused errors. Catching TimeoutException and WriteError in safe_call_command ensures all network timeout variants exit cleanly with user-friendly error messages instead of uncaught exception traces. In addition, ambiguous-write warnings are suppressed when requests fail before a connection is established. (cherry picked from commit 152e5344ef111d43e825111314295d990dc0a681) Co-authored-by: Austin Aviv <[email protected]> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
