daijro / hrequests

🚀 Web scraping for humans
https://daijro.gitbook.io/hrequests/
MIT License
699 stars 44 forks source link

'Failed to connect to proxy' error when using IPV6 proxy #66

Open tufkubie opened 1 week ago

tufkubie commented 1 week ago

Hello, I have no problem using IPV4 proxy in BrowserSession but I get an error when using IPV6 proxy. (I am trying the latest version 0.9.0)

Failed to connect to proxy: ...

Exception ignored in: <function BrowserSession.del at 0x00000287EA1AF740> Traceback (most recent call last): File "C:\Users\thex\anaconda3\envs\env\Lib\site-packages\hrequests\browser\browser.py", line 610, in del self.close() File "C:\Users\thex\anaconda3\envs\env\Lib\site-packages\hrequests\browser\browser.py", line 596, in close cookiejar = self.getCookies() ^^^^^^^^^^^^^^^^^ File "C:\Users\thex\anaconda3\envs\env\Lib\site-packages\hrequests\browser\browser.py", line 401, in getCookies browser_cookies: list = self.context.cookies() ^^^^^^^^^^^^ AttributeError: 'BrowserSession' object has no attribute 'context'

tufkubie commented 2 days ago

I tried 0.9.1 but same problem. Connection problem when using IPv6 proxy.