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

embed response from proxy in ProxyConnectionError #715

Merged
merged 2 commits into from Mar 17, 2020

Conversation

cds2-stripe
Copy link
Contributor

This PR extends ProxyConnectionError to include the CONNECT response from the proxy. Doing so allows clients to better understand the cause of the proxy failure.

This closes #714.

@geemus
Copy link
Contributor

geemus commented Mar 16, 2020

Hey, thanks, this seems like a great addition. I'll add a bit of feedback presently.

Copy link
Contributor

@geemus geemus left a comment

Choose a reason for hiding this comment

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

Please take a look at my feedback about the specifics of what this interface might look like. Thanks!

lib/excon/error.rb Show resolved Hide resolved
@cds2-stripe cds2-stripe requested a review from geemus March 16, 2020 17:17
Copy link
Contributor

@geemus geemus left a comment

Choose a reason for hiding this comment

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

Looks great, thanks!

@geemus geemus merged commit 7956635 into excon:master Mar 17, 2020
@geemus
Copy link
Contributor

geemus commented Mar 17, 2020

Thanks for the report and fix. Released in 0.73.0.

@cds2-stripe cds2-stripe deleted the cds/augment-proxy-connection-error branch March 17, 2020 14:48
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.

Return proxy response in ProxyConnectionError
2 participants