-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: 2.8 SSE 连接超时 #1950
Comments
2.8.0不影响这个,你这个是请求超时,确保服务是否已经启动成功,可以去开放API设置看有没有报错信息,同时浏览器、curl之类的客户端是否可以访问SSE地址 |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
解决方案检查
预期行为
我想要通过SSE 获取播放器状态,但是运行一会就会中断,之前配合v2.7 使用时是正常的,更新到2.8以后出现了这个问题。
实际行为
Traceback (most recent call last):
File "E:\Users\shuis\python\LiveToolBox\monitevent.py", line 13, in run
loop.run_until_complete(self.process_data())
File "D:\Anaconda3\Lib\asyncio\base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "E:\Users\shuis\python\LiveToolBox\monitevent.py", line 29, in process_data
async for event in self.get_data():
File "E:\Users\shuis\python\LiveToolBox\monitevent.py", line 20, in get_data
line = await response.content.readline()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Anaconda3\Lib\site-packages\aiohttp\streams.py", line 307, in readline
return await self.readuntil()
^^^^^^^^^^^^^^^^^^^^^^
File "D:\Anaconda3\Lib\site-packages\aiohttp\streams.py", line 341, in readuntil
await self._wait("readuntil")
File "D:\Anaconda3\Lib\site-packages\aiohttp\streams.py", line 301, in _wait
with self._timer:
File "D:\Anaconda3\Lib\site-packages\aiohttp\helpers.py", line 735, in exit
raise asyncio.TimeoutError from None
TimeoutError
Lx Music 版本
2.8
最后正常的版本
2.7
操作系统版本
Windows 10 22H2 19045.4529
附加信息
class LXSSEThread(QThread):
data_updated = Signal(str)
The text was updated successfully, but these errors were encountered: