Tkd-Alex / Twitch-Channel-Points-Miner-v2

A simple script that will watch a stream for you and earn the channel points.
GNU General Public License v3.0
1.23k stars 683 forks source link

KeyError: 'data' #702

Closed r0dok closed 1 year ago

r0dok commented 1 year ago

I am having this problem whenever I am starting the script.

File "Twitch-Channel-Points-Miner-v2-master\run.py", line 74, in twitch_miner.mine( File "Twitch-Channel-Points-Miner-v2-master\TwitchChannelPointsMiner\TwitchChannelPointsMiner.py", line 150, in mine self.run(streamers=streamers, blacklist=blacklist, followers=followers) File "Twitch-Channel-Points-Miner-v2-master\TwitchChannelPointsMiner\TwitchChannelPointsMiner.py", line 236, in run self.twitch.load_channel_points_context(streamer) File "Twitch-Channel-Points-Miner-v2-master\TwitchChannelPointsMiner\classes\Twitch.py", line 420, in load_channel_points_context if response["data"]["community"] is None: KeyError: 'data'

I have not changed anything, just happened when I restarted the script after I had to reboot my computer

This is what I get when I debug the script in VS Code:

Exception has occurred: KeyError 'data' File "Twitch-Channel-Points-Miner-v2-master\TwitchChannelPointsMiner\classes\Twitch.py", line 420, in load_channel_points_context if response["data"]["community"] is None: File "Twitch-Channel-Points-Miner-v2-master\TwitchChannelPointsMiner\TwitchChannelPointsMiner.py", line 236, in run self.twitch.load_channel_points_context(streamer) File "Twitch-Channel-Points-Miner-v2-master\TwitchChannelPointsMiner\TwitchChannelPointsMiner.py", line 150, in mine self.run(streamers=streamers, blacklist=blacklist, followers=followers) File "Twitch-Channel-Points-Miner-v2-master\run.py", line 74, in twitch_miner.mine( KeyError: 'data'

This is what I get in the problems tab: image image image

Kazushi-0 commented 1 year ago

I am having this problem whenever I am starting the script.

File "Twitch-Channel-Points-Miner-v2-master\run.py", line 74, in twitch_miner.mine( File "Twitch-Channel-Points-Miner-v2-master\TwitchChannelPointsMiner\TwitchChannelPointsMiner.py", line 150, in mine self.run(streamers=streamers, blacklist=blacklist, followers=followers) File "Twitch-Channel-Points-Miner-v2-master\TwitchChannelPointsMiner\TwitchChannelPointsMiner.py", line 236, in run self.twitch.load_channel_points_context(streamer) File "Twitch-Channel-Points-Miner-v2-master\TwitchChannelPointsMiner\classes\Twitch.py", line 420, in load_channel_points_context if response["data"]["community"] is None: KeyError: 'data'

I have not changed anything, just happened when I restarted the script after I had to reboot my computer

This is what I get when I debug the script in VS Code:

Exception has occurred: KeyError 'data' File "Twitch-Channel-Points-Miner-v2-master\TwitchChannelPointsMiner\classes\Twitch.py", line 420, in load_channel_points_context if response["data"]["community"] is None: File "Twitch-Channel-Points-Miner-v2-master\TwitchChannelPointsMiner\TwitchChannelPointsMiner.py", line 236, in run self.twitch.load_channel_points_context(streamer) File "Twitch-Channel-Points-Miner-v2-master\TwitchChannelPointsMiner\TwitchChannelPointsMiner.py", line 150, in mine self.run(streamers=streamers, blacklist=blacklist, followers=followers) File "Twitch-Channel-Points-Miner-v2-master\run.py", line 74, in twitch_miner.mine( KeyError: 'data'

This is what I get in the problems tab: image image image

try take a look at https://github.com/rdavydov/Twitch-Channel-Points-Miner-v2 Forked

r0dok commented 1 year ago

image

Still having the same issue, although bit different now with the forked version

JPDL8901 commented 1 year ago

Getting the same issue since the past few days, nothing on my end changed.

YodaGaming commented 1 year ago

I'm also getting this issue

rdavydov commented 1 year ago

Fixed in my fork https://github.com/rdavydov/Twitch-Channel-Points-Miner-v2

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.