Repository navigation
Surface connection test errors in the UI instead of failing silently - #71954
Merged
bbovenzi merged 1 commit intoAug 21, 2026
Merged
Conversation
Testing a connection only reported success or a failed test result; if the request itself errored the handler set the connection state to failed and showed nothing, leaving the user with a red icon and no explanation of what went wrong. Route those errors through the shared error toaster like every other mutation so the reason is shown.
pierrejeambrun
marked this pull request as ready for review
August 21, 2026 15:10
pierrejeambrun
requested review from
bbovenzi,
choo121600,
guan404ming,
ryanahamilton,
shubhamraj-git and
vatsrahul1001
as code owners
August 21, 2026 15:10
bbovenzi
approved these changes
Aug 21, 2026
Contributor
Backport successfully created: v3-3-testNote: As of Merging PRs targeted for Airflow 3.X In matter of doubt please ask in #release-management Slack channel.
|
aws-airflow-bot
pushed a commit
to aws-mwaa/upstream-to-airflow
that referenced
this pull request
Aug 21, 2026
…ng silently (apache#71954) Testing a connection only reported success or a failed test result; if the request itself errored the handler set the connection state to failed and showed nothing, leaving the user with a red icon and no explanation of what went wrong. Route those errors through the shared error toaster like every other mutation so the reason is shown. (cherry picked from commit ef32e9f) Co-authored-by: Pierre Jeambrun <[email protected]>
bbovenzi
pushed a commit
that referenced
this pull request
Aug 24, 2026
…ng silently (#71954) (#71963) Testing a connection only reported success or a failed test result; if the request itself errored the handler set the connection state to failed and showed nothing, leaving the user with a red icon and no explanation of what went wrong. Route those errors through the shared error toaster like every other mutation so the reason is shown. (cherry picked from commit ef32e9f) Co-authored-by: Pierre Jeambrun <[email protected]>
vatsrahul1001
pushed a commit
that referenced
this pull request
Sep 7, 2026
…ng silently (#71954) (#71963) Testing a connection only reported success or a failed test result; if the request itself errored the handler set the connection state to failed and showed nothing, leaving the user with a red icon and no explanation of what went wrong. Route those errors through the shared error toaster like every other mutation so the reason is shown. (cherry picked from commit ef32e9f) Co-authored-by: Pierre Jeambrun <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When testing a connection from the UI, only a successful test or a failed test result (HTTP 200 with
status=false) showed a message. If the request itself errored (e.g. an unexpected500, or a404),useTestConnection'sonErrorjust set the connection state to failed and showed nothing — leaving the user with a red icon and no explanation, exactly as reported ("I only get a red wifi with crossbeam across it … it should tell me if the connection succeeded or not").This routes those errors through the shared
createErrorToasterused by every other mutation, so the reason is shown.403(testing disabled) continues to be handled by the globalMutationCachehandler, unchanged.Scope note: I could not reproduce the CLI
airflow connections test"conn_id isn't defined" half on currentmain— it now resolves the connection and reports the real hook error — so this addresses the UI silent-failure, which is the reproducible part of the report.closes: #58567
Was generative AI tooling used to co-author this PR?
Generated-by: Claude Code (Opus 4.8) following the guidelines