-
Notifications
You must be signed in to change notification settings - Fork 36
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
base: main
Are you sure you want to change the base?
Conversation
CallToolResult get _connectedAppsNotSupported { | ||
String errorText; | ||
if (_serviceDetectionError != null) { | ||
errorText = 'ConnectedApp service not available: $_serviceDetectionError'; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lukemmtt it would be good to resolve this comment as well if you can :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @jakemac53 , no problem, although I'm not certain I understood. Is this what you had in mind?
Commit: a91675f
@lukemmtt if you would like to land this feel free to move it out of draft, it seems pretty landable to me. |
PR HealthChangelog Entry ✔️
Changes to files need to be accounted for in their respective changelogs. |
See the errors, just some simple analysis lints to fix :) |
- 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
a52f592
to
0026611
Compare
Looks like there are still some unformatted files (I think we format with the dev SDK so this could be related possibly). Note also that you don't need to rebase/force push we squash all commits when we merge so the history here doesn't matter (and it makes reviewing better if you don't force push as that destroys history). |
Thanks for the tips @jakemac53 🙏🏻 will address these promptly and push, thank you! |
Looks like another format is in order |
Adds error logging to help diagnose DTD connection issues reported in #256.
Changes:
This will help identify why the ConnectedApp service detection is failing for some users.