microsoft / microsoft/aspire

Reduce exceptions thrown in Aspire.Hosting

Open
#7,528 2 comments 0 reactions 0 assignees View on GitHub
area-app-model
Dominant language
C#
Stars
6.3k
Forks
991
Avg merge
2d 15h
Merged PRs (30d)
196

Description

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, https://github.com/dotnet/aspire/issues/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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.