Comments (6)
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.
I meet the same problem.I tried pip install urllib3==1.25.11 and the problem is resovled.
from poe-api.
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.
Yes, it works well on poe, google or youtube
from poe-api.
and i try to add an argument in poe.Client:
proxy="socks5://127.0.0.1:7890"
it still broken.
from poe-api.
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)
- SendMessageMutation returned an error: Server Error | Retrying (1/20) | Response: {'data': None, 'errors': [{'message': 'Server Error'}], 'extensions': {'is_final': True, 'enable_i18n': True}} HOT 1
- chunk['text'] gets incomplete anwser HOT 3
- 使用接口调用GPT4,回复的是GPT3.5的结果,而且没有扣除GPT4的次数 HOT 3
- Server returned a status code of 403 while downloading https://poe. com HOT 59
- ReferenceError: 'document' is not defined HOT 1
- it raises runtime error again (RuntimeError(f"Failed to download {url} too many times.")) HOT 1
- Add a feature to upload documents HOT 1
- No module named 'poe' HOT 2
- Failed building wheel for quickjs HOT 9
- RuntimeError: Failed to download https://poe.com too many times. HOT 3
- hard to get chatId HOT 4
- Client cannot be created due to 'data' KeyError HOT 4
- Can not create poe client instance HOT 1
- Seems Poe is blocking to access poe token HOT 1
- Server returned a status code of 400 while downloading https://poe.com/api/gql_POST HOT 8
- Maintainers Needed HOT 12
- Server returned a status code of 403 while downloading bot list HOT 2
- 最新AI集成软件-AI超元域,支持多款AI同时回答
- AI超元域,免费开源多AI协作应用
- Can't find p-b cookie value HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from poe-api.