Skip to content

Conversation

@Poolitzer
Copy link
Member

I didn't write the tests yet, I couldn't find them immediately in PTB and I really should do smth else now.

@joaoemanoelaho
Copy link

I deployed the aiohttpSocks branch to my real application on Square Cloud, and it is working perfectly!

I saw in the aiohttp-socks documentation that they recommend special exception handling for ProxyConnectionError and ProxyTimeoutError (checking e.cause). Would it be worth adding this to the do_request method for more robust proxy error reporting?

https://pypi.org/project/aiohttp-socks/

@Poolitzer
Copy link
Member Author

I think that should propagate correctly? We have the two excepts there because we raise different errors, but these you should be able to expect just like in the example

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.

[BUG] AiohttpRequest does not support SOCKS5 proxies (fails with 400 BadHttpMessage)

3 participants