-
-
Notifications
You must be signed in to change notification settings - Fork 141
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
Fatal Error - KeyError: 'channel' #367
Comments
Hello o/ Thank you for the report.
The culprit here is a channel of a specific name, that causes the crash. It's associated with a game, that isn't on the priority list, while you have the "priority only" option toggled off - only then the conditions for this error can occur. To solve this, I'd need the name of the affected channel or game. In order to determine which games are being considered as mining targets, you'll need to note down (or take a picture/screenshot of) the names of all games that appear in the Inventory tab of the miner, when you toggle the "priority only" option off, and this error is about to happen (right after launching the miner or pressing on reload). Without this list, I cannot do much about this issue. |
Okay so i just redownloaded the and rebuilt the newest version and the Bot works fine now, i tried both with my Prio List, only one Game in Prio List, and Prio only enabled/disabled with the same above criteria (empty list etc.) and i am not able to reproduce this crash anymore as i used to. I guess the Game in Question has been removed from the API at the Moment because its not active anymore, however, i cant really guess what Game it could have been either because i have quite a lot of Games on my Priority List. It's probably not gonna be of any Use, but just incase im gonna put my Prio List here anyway for potential future Reference.
|
Hi there o/ I can confirm that I'm having this same issue everytime I added Lost Ark to the priority list. |
The current master build of the miner was able to handle fetching the status of all 2258 channels, and from whatever ones were online at this time, none of them have caused any errors for me: Whichever channel (or lack thereof) causes this, is still to be determined, but it seems it'd have to be online for me to catch it. For now, please include the UTC/GMT hour / timestamp / descriptive timeframe (ex. "5 minutes ago, in regards to this comment") of whenever this issue happens for you, and report every occurrence. |
I get the same problem when my twitch account is linked to the lost ark, |
As a temporary solution, you can exclude "Lost Ark" via the excluded list, without having to unlink the account. I'm still trying to catch this one live. I'm still waiting for anyone to report an approximate time of when one can run into this, |
It also happened in Neon Abyss: Infinity. |
It may happen on any campaign that has the affected channel - I'm still yet to experience this error myself, and without that I can't tell where the issue is, and thus fix it. I shall reiterate what I've mentioned in the comment higher above:
|
Time is CET/GMT+1 Getting a similar error as OP. Activating priority list seems to fix it for me. Priority list: Games mined per inventory list (only linked and currently mineable): Somehow my twitch drops site also shows RUST, although it is not connected and I haven't watched this game actively but still got progress. I hope this info helps somehow and thanks for all your work! |
Okay. I think I have nailed it down for me. It seems to be Lost Ark. After playing around and adding titles one by one to the priority list it started crashing after adding Lost Ark. Putting Lost Ark on the "exclude list" seems to work for me even with disabled "priority only" |
This issue is caused by a channel, not a game. If the troublesome channel would stream a different game, adding that game would cause the crash. Since I can't catch the channel being online myself, I think the best I can do, is provide a special debug build that'll tell us which channel is the troublemaker here. If anyone would encounter this bug again, please run this build from source (or build it, up to you): https://github.com/DevilXD/TwitchDropsMiner/tree/debug_channel The exception will still occur, but this time it should display the name of the channel causing the problem to occur. |
Now I get it. |
02:38:31: Fatal error encountered:
02:38:31:
02:38:31: Traceback (most recent call last):
02:38:31: File "C:\Users\night\OneDrive\Desktop\twitcher\TwitchDropsMiner\main.py", line 158, in main
02:38:31: await client.run()
02:38:31: File "C:\Users\night\OneDrive\Desktop\twitcher\TwitchDropsMiner\twitch.py", line 764, in run
02:38:31: await self._run()
02:38:31: File "C:\Users\night\OneDrive\Desktop\twitcher\TwitchDropsMiner\twitch.py", line 908, in _run
02:38:31: await asyncio.gather(
02:38:31: File "C:\Users\night\OneDrive\Desktop\twitcher\TwitchDropsMiner\channel.py", line 277, in update_stream
02:38:31: self._stream = await self.get_stream()
02:38:31: File "C:\Users\night\OneDrive\Desktop\twitcher\TwitchDropsMiner\channel.py", line 264, in get_stream
02:38:31: for c in (available_drops["data"]["channel"]["viewerDropCampaigns"] or [])
02:38:31: KeyError: 'channel'
02:38:31:
02:38:31: Exiting...
02:38:31: Cannot connect to Twitch, retrying in 2 seconds...
02:38:31:
02:38:31: Application Terminated.
02:38:31: Close the window to exit the application.
02:38:32: Cannot connect to Twitch, retrying in 2 seconds...
I was using an older version just fine and just decided to get the newest one, downloaded and built it, no errors etc, dragged back in the settings and cookies and then i get this. Thing is, it will give the same crash, even when dont use my old settings and cookies, i tried it without any priority list which ends in a crash, however, i tried Priority only, with Smite in the Prio list, and it works perfectly fine. I think its some Game crashing it again like a few Weeks ago?! but im not really sure, as i cant use my old prio list either, it will make the tool crash aswell.
The text was updated successfully, but these errors were encountered: