Skip to content

fix: surface gateway error messages in Settings test connection#54

Merged
shanselman merged 1 commit intomasterfrom
fix/verbose-test-connection-errors
Mar 17, 2026
Merged

fix: surface gateway error messages in Settings test connection#54
shanselman merged 1 commit intomasterfrom
fix/verbose-test-connection-errors

Conversation

@shanselman
Copy link
Copy Markdown
Collaborator

The Settings Test button was showing a generic 'Connection failed' when the gateway rejected the connection. The actual error (e.g. origin not allowed) was swallowed by the silent TestLogger.

Now the TestLogger captures errors and the status label shows the real gateway message:

Before: ❌ Connection failed
After: ❌ origin not allowed (open the Control UI from the gateway host or allow it in gateway.controlUi.allowedOrigins)

Also adds verbose debug output from the test client for dbgview-mcp diagnostics.

The TestLogger was silently swallowing all gateway client errors,
so connection failures showed a generic 'Connection failed' message.
Now captures the last error/warning and displays the actual gateway
message (e.g. 'origin not allowed') in the status label.

Also keeps verbose logging to Debug.WriteLine for dbgview-mcp
diagnostics.
@shanselman shanselman force-pushed the fix/verbose-test-connection-errors branch from 2f3d49e to eea7a92 Compare March 17, 2026 06:35
@shanselman shanselman merged commit 302dfaa into master Mar 17, 2026
8 checks passed
@shanselman shanselman deleted the fix/verbose-test-connection-errors branch March 17, 2026 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant