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

Add HttpRequestException expected exception handling #443

Merged
merged 1 commit into from
Sep 11, 2024

Conversation

dkbennett
Copy link
Member

@dkbennett dkbennett commented Sep 6, 2024

Summary of the pull request

Adds exception handling to not spam detailed error stack when we have an HttpRequest exception. This keeps the log clean and avoids giving us false alarm exception spam when unrelated network issues happen, such as DNS resolution problems or simply no internet connection.

References and relevant issues

Observed such false alarm spam in: microsoft/devhome#3778

Detailed description of the pull request / Additional comments

  • Adds exception catches specifically for HttpRequestException and treats them as warnings and does not log the exception.

Validation steps performed

  • Built and deployed fix with forced HttpRequestException thrown to verify handling. Confirmed log has warnings and no exception stack dump and no errors.

PR checklist

@dkbennett dkbennett merged commit 8664939 into main Sep 11, 2024
4 checks passed
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.

Expected Http errors are noisy in the log and sending false positives of issues
4 participants