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

proxy tls error #23

Open
madrassomrn opened this issue May 6, 2024 · 3 comments
Open

proxy tls error #23

madrassomrn opened this issue May 6, 2024 · 3 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@madrassomrn
Copy link

env_.venv\Lib\site-packages\aiohttp\connector.py:942: RuntimeWarning: An HTTPS request is being sent through an HTTPS proxy. This support for TLS in TLS is known to be disabled in the stdlib asyncio (Python <3.11). This is why you'll probably see an error in the log below.

It is possible to enable it via monkeypatching. For more details, see:

You can temporarily patch this as follows:

Connecting to an https site via an http proxy, how to fix this error?

@Vizonex
Copy link
Owner

Vizonex commented May 6, 2024

@madrassomrn To get around this issue I would try using the aiohttp_socks library for now, I will be sure to implement the solution directly for this problem without the workaround I have provided to you in the future.

@Vizonex Vizonex added bug Something isn't working help wanted Extra attention is needed labels May 6, 2024
@madrassomrn
Copy link
Author

@madrassomrn To get around this issue I would try using the aiohttp_socks library for now, I will be sure to implement the solution directly for this problem without the workaround I have provided to you in the future.

With this library, I can’t change the proxy per request, or is it not possible there?

@Vizonex
Copy link
Owner

Vizonex commented May 12, 2024

@madrassomrn it's not possible to swap proxies without disconnecting from one and then swapping however, I am planning though to write a test to the tests folder for hosing a temporary http proxy to attempt to make a request from to make sure winloop knows how to handle this stuff correctly on aiohttp itself so I can see where the problem exactly is coming from.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants