Skip to content
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

Exception in _watch_loop task #631

Open
zsnzzg opened this issue Nov 30, 2024 · 1 comment
Open

Exception in _watch_loop task #631

zsnzzg opened this issue Nov 30, 2024 · 1 comment
Labels
Bug Something isn't working

Comments

@zsnzzg
Copy link

zsnzzg commented Nov 30, 2024

02:49:33: 正在观看: mL7support
02:49:34: ERROR: Exception in _watch_loop task
02:49:34: Traceback (most recent call last):
02:49:34:   File "O:\zsn\TDM\TwitchDropsMiner\utils.py", line 132, in wrapper
02:49:34:     await afunc(*args, **kwargs)
02:49:34:   File "O:\zsn\TDM\TwitchDropsMiner\twitch.py", line 888, in _watch_loop
02:49:34:     succeeded: bool = await channel.send_watch()
02:49:34:   File "O:\zsn\TDM\TwitchDropsMiner\channel.py", line 377, in send_watch
02:49:34:     async with self._twitch.request(
02:49:34:   File "C:\Users\snow\AppData\Local\Programs\Python\Python310\lib\contextlib.py", line 199, in __aenter__
02:49:34:     return await anext(self.gen)
02:49:34:   File "O:\zsn\TDM\TwitchDropsMiner\twitch.py", line 1313, in request
02:49:34:     response = await self.gui.coro_unless_closed(
02:49:34:   File "O:\zsn\TDM\TwitchDropsMiner\gui.py", line 2203, in coro_unless_closed
02:49:34:     return await next(iter(done))
02:49:34:   File "O:\zsn\TDM\TwitchDropsMiner\env\lib\site-packages\aiohttp\client.py", line 1328, in send
02:49:34:     return self._coro.send(arg)
02:49:34:   File "O:\zsn\TDM\TwitchDropsMiner\env\lib\site-packages\aiohttp\client.py", line 576, in _request
02:49:34:     raise err_exc_cls(url)
02:49:34: aiohttp.client_exceptions.InvalidUrlClientError: %3C/BODY%3E%3C/HTML%3E
02:49:34: 正在退出...
02:49:36: 
02:49:36: 应用程序已终止请关闭窗口以退出应用程序.
@DevilXD DevilXD added the Bug Something isn't working label Dec 1, 2024
@DevilXD
Copy link
Owner

DevilXD commented Dec 1, 2024

Hello,

Thank you for the report. The error suggests one of two things, either some kind of global redirect system has loaded up an HTML page in places of stream data, or it's some kind of an error from Twitch that returned HTML instead of text. Both are likely, but the first one is more likely than the second.

The redirect system usually exists where you have to login into the network to use it. The miner has a way of detecting that, but only during the first setup run. If the network requires you to relogin after some time, this error could be the result of it.

Without access to such a network, it's not really possible for me to determine the best course of action here. I'll try implementing the "unexpected content" in the watch loop handler, but it's going to be a "blind fix" sort of thing, without me being able to test it properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants