-
Notifications
You must be signed in to change notification settings - Fork 359
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
Error: KeyError: 'data' #593
Comments
Do you use some other miner with this one? (running in parallel. i.e. Twitch Drops Miner) I have a feeling that these 2 miners unable to work side-by-side - Drops Miner start to post messages from Points Miner's channels and Drops Miner stop working correctly. And, I assume, because 2 miners are running at the same time, Points Miner start to show |
Hey there, I am not using any miners or anything at all on the system. It's an dedicated linux (debian) system running the docker image, nothing else. |
I started to get the same error. |
i too get the error but the script still runs normally it just will log the error in the middle of my claim logs
|
Yep, seems like Twitch has changed the response structure, need to investigate it. |
No, the structure has not changed. I think it happens when Twitch's response is completely different, like some sort of an error. The problem is that it is not happening all the time, seems like periodically or maybe even once a session. I've been running the debugger for half an hour and still haven't got such error. Maybe they are some glitches on the Twitch's side. I guess I can just make a quick fix to ignore these errors, they don't break the miner's functionality. |
Made some improvements to not raise the KeyError and AttributeError. Should help to get less errors in the probable API changes in this part of the code. Also now it logs more detailed information about the invalid response when it occurs. |
Please check the new version 1.9.8 and report back whether this issue has been fixed. |
I see it's become even worse now, more error lines. I'll try another way. |
Error with update_client_version: HTTPSConnectionPool(host='www.twitch.tv', port=443): Max retries exceeded with url: / (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x000002C42C3AAE70>, 'Connection to www.twitch.tv timed out. (connect timeout=None)')) I get this error |
Describe the bug
There seems to be an incorrect key path / name in the code, causing the following error (using the docker image):
(not including my username for privacy)
Steps to reproduce
sudo docker-compose logs -f
to view a live log of the minerThe events I am using are Events.STREAMER_ONLINE, Events.STREAMER_OFFLINE, Events.GAIN_FOR_RAID, Events.GAIN_FOR_CLAIM, Events.GAIN_FOR_WATCH, Events.BONUS_CLAIM, Events.BET_WIN, Events.BET_LOSE, Events.BET_REFUND, Events.BET_FILTERS, Events.BET_GENERAL, Events.BET_FAILED, Events.BET_START, Events.MOMENT_CLAIM, Events.JOIN_RAID, Events.DROP_CLAIM, Events.DROP_STATUS, Events.CHAT_MENTION
Expected behavior
Should return the watched time in minutes
Operating system
Linux (Debian AWS)
Python version
3.11.1
Miner version
Docker image
Other relevant software versions
No response
Logs
10/09/24 12:11:37 - ERROR - TwitchChannelPointsMiner.classes.Twitch - [send_minute_watched_events]: Exception raised in send minute watched
Traceback (most recent call last):
File "/usr/src/app/TwitchChannelPointsMiner/classes/Twitch.py", line 495, in send_minute_watched_events
signature = responsePlaybackAccessToken["data"]['streamPlaybackAccessToken']["signature"]
~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
KeyError: 'data'
Additional context
No response
The text was updated successfully, but these errors were encountered: