Code Monkey home page Code Monkey logo

Comments (11)

snowby666 avatar snowby666 commented on June 1, 2024 1

I see. I'll try to resolve this.

from poe-api-wrapper.

snowby666 avatar snowby666 commented on June 1, 2024

It will be nice if you can show the error logs

from poe-api-wrapper.

zhouhh2017 avatar zhouhh2017 commented on June 1, 2024

No error occured, just endless loop.

from poe-api-wrapper.

zhouhh2017 avatar zhouhh2017 commented on June 1, 2024

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.

zhouhh2017 avatar zhouhh2017 commented on June 1, 2024

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.

llllly26 avatar llllly26 commented on June 1, 2024

maybe, i have the same problem.

from poe-api-wrapper.

zhouhh2017 avatar zhouhh2017 commented on June 1, 2024

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.

llllly26 avatar llllly26 commented on June 1, 2024

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.

li904775857 avatar li904775857 commented on June 1, 2024

更新有帮助。点子安装 --升级 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.

phamxtien avatar phamxtien commented on June 1, 2024

increase timeout

from poe-api-wrapper.

li904775857 avatar li904775857 commented on June 1, 2024

increase timeout

我设置的30秒,还是不行,socket,on_error函数返回 [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。

from poe-api-wrapper.

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.