Comments (11)
I see. I'll try to resolve this.
from poe-api-wrapper.
It will be nice if you can show the error logs
from poe-api-wrapper.
No error occured, just endless loop.
from poe-api-wrapper.
The code:
from poe_api_wrapper import PoeApi
client = PoeApi("06oT..")
bot = "a2"
message = "What is reverse engineering?"
Non-streamed example:
for chunk in client.send_message(bot, message):
pass
print(chunk["text"])
from poe-api-wrapper.
I located function #connect_ws
, but it's unclear what caused him to not jump out
def send_message:
...
while self.ws_error:
sleep(0.01)
print('0')
self.connect_ws()
print('1')
=>
def connect_ws:
print('hello')
.... all codes in the function
print('bye')
Terminal output:
hello
bye
0
hello
hello
bye
hello
bye
from poe-api-wrapper.
maybe, i have the same problem.
from poe-api-wrapper.
The update helps.
pip install --upgrade poe-api-wrapper
Successfully uninstalled poe-api-wrapper-1.2.1
Successfully installed poe-api-wrapper-1.2.3
But a New Error occurred:
site-packages\poe_api_wrapper\api.py", line 258, in connect_ws
raise RuntimeError("Timed out waiting for websocket to connect.")
RuntimeError: Timed out waiting for websocket to connect.
from poe-api-wrapper.
The update helps. pip install --upgrade poe-api-wrapper
Successfully uninstalled poe-api-wrapper-1.2.1 Successfully installed poe-api-wrapper-1.2.3
But a New Error occurred: site-packages\poe_api_wrapper\api.py", line 258, in connect_ws raise RuntimeError("Timed out waiting for websocket to connect.") RuntimeError: Timed out waiting for websocket to connect.
have you solved? I have the same error as yours.
from poe-api-wrapper.
更新有帮助。点子安装 --升级 PoE-API 包装器
已成功卸载 poe-api-wrapper-1.2.1 已成功安装 poe-api-wrapper-1.2.3
但是发生了一个新错误:站点包\poe_api_wrapper\api.py“,第 258 行,connect_ws引发运行时错误(”等待 websocket 连接超时。运行时错误:等待 websocket 连接超时。
have you solved? I have the same error as yours. ,[WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。
from poe-api-wrapper.
increase timeout
from poe-api-wrapper.
increase timeout
我设置的30秒,还是不行,socket,on_error函数返回 [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。
from poe-api-wrapper.
Related Issues (20)
- file attachments HOT 3
- New error? simplejson.errors.JSONDecodeError
- Bug on the result from poe --b BKEY --lat LATKEY
- it looks like api died. with the basic code below it doesn't work =/ HOT 1
- The server is down? Why SubscriptionMutation HOT 1
- Why the api is unstable right now HOT 5
- Issue on uploading txt files HOT 1
- Daily Limit Reached HOT 3
- Can I use the API_Key from poe directly? HOT 2
- Could it be converted to the OpenAI API format?
- With proxy, websocket error
- Could it be possible to support video file attachment
- Release 1.4.1, using Python 3.12.3 on MacOS, doesn't work HOT 2
- Error when uploading file with gemini_1_5_pro_1m HOT 1
- api still works? because I tried several ways here at home and it stopped working =/ HOT 1
- 16 message/day limit for Poe tokens ? HOT 1
- 代理问题 proxy problem
- where is quora.com/poe_api/gql_post ?
- ValueError: I/O operation on closed file problem. HOT 1
- gpt-4o has been updated in po, what is its code? HOT 1
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-wrapper.