Skip to content
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

Reduce exceptions thrown in Aspire.Hosting #7528

Open
JamesNK opened this issue Feb 11, 2025 · 0 comments
Open

Reduce exceptions thrown in Aspire.Hosting #7528

JamesNK opened this issue Feb 11, 2025 · 0 comments
Labels
area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication untriaged New issue has not been triaged

Comments

@JamesNK
Copy link
Member

JamesNK commented Feb 11, 2025

Exceptions thrown in the app host are always printed to the debug console. Althrough the errors are handled, they add noise the debug console. For example, #7486

Common exceptions:

  • k8s.Autorest throws HttpOperationException in many situations. For example, GetAsync for a resource that doesn't exist throws the error. I'm not sure what options there are to suppress them.
  • OperationCanceledException is thrown from many canceled async operations. For example, canceling watching for resource notifications. ConfigureAwaitOptions.NoThrow could be used to stop them. Or gracefully completing channels when we no longer want to read from them instead of aborting read with a cancellation token.
@JamesNK JamesNK added area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication untriaged New issue has not been triaged labels Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication untriaged New issue has not been triaged
Projects
None yet
Development

No branches or pull requests

1 participant