Coder Social home page Coder Social logo

SSLError about poe-api HOT 6 OPEN

ading2210 avatar ading2210 commented on June 25, 2024
SSLError

from poe-api.

Comments (6)

ading2210 avatar ading2210 commented on June 25, 2024 1

Maybe try the socks5h protocol, which also proxies the DNS queries? Also, are you able to use the same proxy with the python requests module in a different script?

from poe-api.

Mr-Cong avatar Mr-Cong commented on June 25, 2024 1

I meet the same problem.I tried pip install urllib3==1.25.11 and the problem is resovled.

from poe-api.

ading2210 avatar ading2210 commented on June 25, 2024

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 that you're trying to connect with a proxy. Can you verify that your proxy works on poe.com and other sites?

from poe-api.

Hammour-steak avatar Hammour-steak commented on June 25, 2024

Yes, it works well on poe, google or youtube

from poe-api.

Hammour-steak avatar Hammour-steak commented on June 25, 2024

and i try to add an argument in poe.Client:
proxy="socks5://127.0.0.1:7890"
it still broken.

from poe-api.

def-saizi-baka avatar def-saizi-baka commented on June 25, 2024

I would like to ask that I have obtained the token now, but an error occurred while running the example: running code:

import poe
import logging
import sys

#send a message and immediately delete it

client = poe.Client("my token")

message = "Who are you?"
for chunk in client.send_message("capybara", message, with_chat_break=True):
  print(chunk["text_new"], end="", flush=True)

#delete the 3 latest messages, including the chat break
client.purge_conversation("capybara", count=3)

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")

Try http://127.0.0.1:7890 ?

from poe-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.