Skip to content

Add diagnostics for DTD service detection failures #257

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

lukemmtt
Copy link

@lukemmtt lukemmtt commented Aug 3, 2025

Adds error logging to help diagnose DTD connection issues reported in #256.

Changes:

  • Capture and log exceptions in service detection
  • Log registered DTD services
  • Track VM service retrieval failures
  • Make error messages reflect actual failure reason

This will help identify why the ConnectedApp service detection is failing for some users.

- Log all registered DTD services when checking for ConnectedApp
- Capture and log specific errors instead of silently swallowing exceptions
- Add contextual error messages explaining possible causes
- Track VM service retrieval failures separately
- Make error messages dynamic based on actual failure reason
@lukemmtt lukemmtt marked this pull request as draft August 3, 2025 21:43
@lukemmtt lukemmtt closed this Aug 4, 2025
@lukemmtt lukemmtt reopened this Aug 4, 2025
CallToolResult get _connectedAppsNotSupported {
String errorText;
if (_serviceDetectionError != null) {
errorText = 'ConnectedApp service not available: $_serviceDetectionError';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that in this case it is usually going to be because the user isn't on the required SDK version, so it would be good to include that in the text here?

@jakemac53
Copy link
Contributor

@lukemmtt if you would like to land this feel free to move it out of draft, it seems pretty landable to me.

@lukemmtt lukemmtt marked this pull request as ready for review August 4, 2025 16:54
Copy link

github-actions bot commented Aug 4, 2025

PR Health

Changelog Entry ✔️
Package Changed Files

Changes to files need to be accounted for in their respective changelogs.

@jakemac53
Copy link
Contributor

See the errors, just some simple analysis lints to fix :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants