-
Notifications
You must be signed in to change notification settings - Fork 313
SSLError #19
Comments
It seems that you're trying to connect with a proxy. Can you verify that your proxy works on poe.com and other sites? |
Yes, it works well on poe, google or youtube |
and i try to add an argument in poe.Client: |
Maybe try the |
I meet the same problem.I tried pip install urllib3==1.25.11 and the problem is resovled. |
Try http://127.0.0.1:7890 ? |
I would like to ask that I have obtained the token now, but an error occurred while running the example:
running code:
exception:
Traceback (most recent call last):
File "C:/Users/hammour/Desktop/poe-api-main/examples/temporary_message.py", line 7, in
client = poe.Client("my token", proxy="socks5://127.0.0.1:7890")
File "C:\Users\hammour\Desktop\poe-api-main\poe-api\src\poe.py", line 73, in init
self.next_data = self.get_next_data()
File "C:\Users\hammour\Desktop\poe-api-main\poe-api\src\poe.py", line 89, in get_next_data
r = request_with_retries(self.session.get, self.home_url)
File "C:\Users\hammour\Desktop\poe-api-main\poe-api\src\poe.py", line 32, in request_with_retries
r = method(*args, **kwargs)
File "D:\Anaconda\envs\cvstudy\lib\site-packages\requests\sessions.py", line 555, in get
return self.request('GET', url, **kwargs)
File "D:\Anaconda\envs\cvstudy\lib\site-packages\requests\sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "D:\Anaconda\envs\cvstudy\lib\site-packages\requests\sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "D:\Anaconda\envs\cvstudy\lib\site-packages\requests\adapters.py", line 510, in send
raise ProxyError(e, request=request)
requests.exceptions.ProxyError: HTTPSConnectionPool(host='poe.com', port=443): Max retries exceeded with url: / (Caused by ProxyError('Cannot connect to proxy.', OSError(0, 'Error')))
It seems like this code is wrong:
client = poe.Client("my token")
The text was updated successfully, but these errors were encountered: