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

diagnose: add http fallback uri #1339

Merged
merged 1 commit into from
Jul 17, 2023

Conversation

ldennington
Copy link
Contributor

Currently, failure to access http://example.com causes failure of the Networking Diagnostic portion of the diagnose command. To improve the experience for users who are unable to access http://example.com, this change:

  1. Adds a fallback URI - if accessing http://example.com throws an exception, we now try http://httpforever.com.
  2. Prints a warning when either the primary or both the primary and fallback uris throw an exception (instead of failing the Networking Diagnostic).

Fixes #1215

@ldennington ldennington requested a review from mjcheetham July 17, 2023 16:24
@ldennington ldennington self-assigned this Jul 17, 2023
Copy link
Collaborator

@mjcheetham mjcheetham left a comment

Choose a reason for hiding this comment

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

Great!

Currently, failure to access http://example.com causes failure of the
Networking Diagnostic portion of the diagnose command. To improve the
experience for users who are unable to access http://example.com, this
change:

1. Adds a fallback URI - if accessing http://example.com throws an
exception, we now try http://httpforever.com.
2. Prints a warning when either the primary or both the primary and
fallback uris throw an exception (instead of failing the Networking
Diagnostic).
@ldennington ldennington force-pushed the diagnose-http-fallback branch from 303996a to 5afa56b Compare July 17, 2023 17:46
@ldennington ldennington merged commit 6904af7 into git-ecosystem:main Jul 17, 2023
@ldennington ldennington mentioned this pull request Aug 1, 2023
ldennington added a commit that referenced this pull request Aug 1, 2023
**Changes since 2.2.2:**

- Fix a GCM/Git Trace2 file locking issue
  - Issue: #1323 
  - PR: #1340
- Remove symlinks to `git-credential-manager-core` exe
  - Issue: #1322
  - PR: #1327 
- Add fallback http uri to `diagnose` command
  - Issue: #1215
  - PR: #1339
- Workaround MSAL tenant issue with silent auth
  - Issue: #1297
  - PR: #1321
@ldennington ldennington deleted the diagnose-http-fallback branch August 19, 2023 16:36
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.

GCM diagnose partially fails with System.Net.Http.HttpRequestException
2 participants