Repository navigation
Report proxy URL on tunnel failures - #3144
Merged
seanmonstar merged 1 commit intoNov 23, 2026
Merged
seanmonstar merged 1 commit into
seanmonstar merged 1 commit into
Conversation
konsti-openai
commented
Nov 19, 2026
|
|
||
| /// Redact credentials before adding the proxy address to the connection error. | ||
| /// For example, report `http://user:secret@proxy:8080` as `http://proxy:8080`. | ||
| /// If the redacted address doesn't parse as a URL, omit the address entirely. |
Contributor
Author
There was a problem hiding this comment.
I don't understand URLs good enough to know if that is the right default.
konsti-openai
marked this pull request as ready for review
November 19, 2026 12:00
This was referenced Nov 19, 2026
seanmonstar
approved these changes
Nov 23, 2026
seanmonstar
left a comment
Owner
There was a problem hiding this comment.
Looks awesome to me, thanks!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When reqwest failed to resolve the proxy instead of the destination, the error change is currently not clear and does not show the proxy URL. This PR adds a wrapper type that (after redaction) shows the proxy URL.
This adds redundancy in the error chain, but the fix requires a separate hyper-util change.
Fixes #2252
Example
error: error sending request for url (https://example.org/) cause: client error (Connect) cause: tunnel error: failed to create underlying connection + cause: failed to connect to proxy (http://proxy.invalid:8080/) cause: dns error cause: error resolving DNS cause: failed to lookup address information: nodename nor servname provided, or not known