Twitch-Channel-Points-Miner-v2 icon indicating copy to clipboard operation
Twitch-Channel-Points-Miner-v2 copied to clipboard

Doesn't get points for raids and bonuses.

Open LeoAlt8 opened this issue 2 years ago • 69 comments

Doesn't get points for raids and bonuses. There is a notice about bonuses and a raid. But it doesn't take points.

  • OS: Ubuntu 20.04.5 LTS
  • Python 3.8.10

2022-09-13

LeoAlt8 avatar Sep 13 '22 20:09 LeoAlt8

i am also running into this issue, seems the bot tires to redeem the bonus box but never does

nauit avatar Sep 14 '22 07:09 nauit

Can confirm this issue. Restarted the miner, but still no more CLAIM points.

rdavydov avatar Sep 14 '22 10:09 rdavydov

Can Confirm sees the points and bonuses cant claim. also tries to place points for predictions but cant.

healpear avatar Sep 14 '22 11:09 healpear

As additional info, manually pressing the Claim button on-stream, the CLAIM message immediately appears on the log. Would make me guess that Twitch edited the request sent by clicking it and now the miner doesn't send the right signal anymore?

ColinShark avatar Sep 14 '22 12:09 ColinShark

Add to what you said it sees the prediction and goes through with trying to make a prediction in the logs it says place X amount of points but actually doesnt. so it appears to be working when you view logs but never actually places the bet.

healpear avatar Sep 14 '22 12:09 healpear

I don't know if it can help, but on my version of the project I don't have the issue. And I made no changes to the requests being made, so to me it seems unlikely to be a change from Twitch.

Rakambda avatar Sep 14 '22 12:09 Rakambda

same isssue

kenx00x avatar Sep 14 '22 14:09 kenx00x

Have the same issue, Debug logging returns this type of error on both raid and claim

Data: {'operationName': 'JoinRaid', 'extensions': {'persistedQuery': {'version': 1, 'sha256Hash': 'c6a332a86d1087fbbb1a8623aa01bd1313d2386e7c63be60fdb2d1901f01a4ae'}}, 'variables': {'input': {'raidID': '85f4eb30-xxxxx'}}}, Status code: 200, Content: {"errors":[{"message":"failed integrity check"}],"extensions":{"challenge":{"type":"integrity"},"durationMilliseconds":2,"operationName":"JoinRaid","requestID":"01GCWYxxxxx"}}

jeppz avatar Sep 14 '22 14:09 jeppz

Some days ago I had that issue for a few hours and then it was gone.

Rakambda avatar Sep 14 '22 14:09 Rakambda

I don't know if it can help, but on my version of the project I don't have the issue. And I made no changes to the requests being made, so to me it seems unlikely to be a change from Twitch.

Yesterday I tried to run your project for several hours. (On a new Ubuntu VM). So nothing happened. Your project lacks detailed instructions with screenshots or videos for lamers. How to install, what to install, how to configure, where to configure. Not all users are programmers or work with IT systems.

LeoAlt8 avatar Sep 14 '22 14:09 LeoAlt8

I don't know if it can help, but on my version of the project I don't have the issue. And I made no changes to the requests being made, so to me it seems unlikely to be a change from Twitch.

Yesterday I tried to run your project for several hours. (On a new Ubuntu VM). So nothing happened. Your project lacks detailed instructions with screenshots or videos for lamers. How to install, what to install, how to configure, where to configure. Not all users are programmers or work with IT systems.

I know. I'm not trying to promote my project here. For sure it is less oriented for "lambda" people and it's a choice I made.

Just saying what I observe on my end. Being the fact that I don't have that issue right now, so a Twitch Api change seems unlikely.

Rakambda avatar Sep 14 '22 14:09 Rakambda

Same problem. +50 claim bonuses have not been taken for a day already. This also does not work in the first version of Twitch-Channel-Points-Miner. image image

avatar1618 avatar Sep 14 '22 15:09 avatar1618

Seems like sha256Hash for ClaimCommunityPoints is the same (46aaee..3d0), but why does twitch return the integrity check error? 🤔 Status code: 200, Content: {"errors":[{"message":"failed integrity check"}],"extensions":{"challenge":{"type":"integrity"}

rdavydov avatar Sep 14 '22 15:09 rdavydov

+1. Has been like this for 2 days. Like the others I see "failed integrity check" in the logs. Somethings I tried:

  • I tried to lower the maximum number of parallel streams to 1 instead of 2 in twitch.py -> Same thing.
  • Cleared the cookie and the logs and started fresh, it loaded all my streamers and tried to claim bonuses for some of them -> Same thing.

moudaz avatar Sep 14 '22 15:09 moudaz

Some days ago I had that issue for a few hours and then it was gone.

That was a Twitch issue where you couldn't even claim the bonus on the website. That's not the same thing that's happening now. You can claim it manually on the site and it does show up in the script when you do.

The issue you're referring to was like 2 weeks ago and yeah the box wasn't showing up at all. Though yesterday I had the same failed integrity check error and it went away by it self. Lasted from 2022-13-09 00:20:00 to 02:45:00 CET. image

Rakambda avatar Sep 14 '22 18:09 Rakambda

Twitch now need "Integrity token" when you call the GraphQL API twitch

What is "Integrity": https://github.com/mauricew/twitch-graphql-api#integrity

You can generate the token like this: https://github.com/Kappador/twitch-integrity/blob/master/index.js

stan60250 avatar Sep 14 '22 18:09 stan60250

Can confirm I've been hitting the same issue the past day or two. Based on the information posted above, it seems like the solution would be to update the miner to send a POST with an empty body during startup of the application to get an integrity token, and then use that on all subsequent requests?

BarkerB avatar Sep 14 '22 21:09 BarkerB

Twitch now need "Integrity token" when you call the GraphQL API twitch

What is "Integrity": https://github.com/mauricew/twitch-graphql-api#integrity

You can generate the token like this: https://github.com/Kappador/twitch-integrity/blob/master/index.js

how to do it? i dont get it. This prog(twitch-miner) is on python, but yours is on JS. I am not a programmer

Reactiveee avatar Sep 14 '22 21:09 Reactiveee

Also it needs to be renewed regularly, so not just at startup.

Rakambda avatar Sep 14 '22 21:09 Rakambda

Apparently, mere mortals were left without a tool. 😭

LeoAlt8 avatar Sep 14 '22 21:09 LeoAlt8

+1 to this thread, noticed last night bonuses stopped being claimed automatically.

admiralflapjack avatar Sep 14 '22 22:09 admiralflapjack

Downloaded the files yesterday and today don't claim the rewards, maybe I brought some bad luck. Also, why is only Mining in the 2 first twitch channels? I put 3 and I'm just receiving from 2 of them.

GMPerfectZ avatar Sep 14 '22 23:09 GMPerfectZ

@GMPerfectZ https://github.com/Tkd-Alex/Twitch-Channel-Points-Miner-v2#limits

zhenyamega avatar Sep 14 '22 23:09 zhenyamega

@GMPerfectZ https://github.com/Tkd-Alex/Twitch-Channel-Points-Miner-v2#limits

ty. I did remember reading that.

GMPerfectZ avatar Sep 14 '22 23:09 GMPerfectZ

I added a /integrity request at startup and setting the appropriate header - that didn't solve the problem. It seems that in addition to Client-Integrity, the Client-Session-Id, Client-Version and X-Device-Id headers are also needed, but where to get the values for them is not clear.

BRIGADA avatar Sep 15 '22 00:09 BRIGADA

I added a /integrity request at startup and setting the appropriate header - that didn't solve the problem. It seems that in addition to Client-Integrity, the Client-Session-Id, Client-Version and X-Device-Id headers are also needed, but where to get the values for them is not clear.

Hello @BRIGADA,

little fun fact on that side: those values can be randomly generated. function clientSessionID() { return "xxxxxxxxxxxxxxxx".replace(/[xy]/g, (function(e) { var t = 16 * Math.random() | 0; return ("x" === e ? t : 3 & t | 8).toString(16) })) } function clientVersion() { return "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx".replace(/[xy]/g, (function(e) { var t = 16 * Math.random() | 0; return ("x" === e ? t : 3 & t | 8).toString(16) })) } function xDeviceID() { return "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx".replace(/[xy]/g, (function(e) { var t = 16 * Math.random() | 0; return ("x" === e ? t : 3 & t | 8).toString(16) })) } function clientID() { return "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx".replace(/[xy]/g, (function(e) { var t = 16 * Math.random() | 0; return ("x" === e ? t : 3 & t | 8).toString(16) })) }

I added some code from my javascript to redeem the channel point rewards. With the addition of the token for the client integrity I was able to redeem the rewards again. I noticed that the same integrity token can be used multiple times.

Hope this helps everyone :)

Kind Regards

Cin3m

cin3m avatar Sep 15 '22 07:09 cin3m

Feel free to test my PR #594 to fix this issue.

Cheers 🎉

bossoq avatar Sep 15 '22 10:09 bossoq

anyone from developer/moderator end, can make a tutorial (if video possible) for the nerds or non coders like us to fix this docker/integrity check error so that we can claim bonus and other points.

bsdanu avatar Sep 15 '22 11:09 bsdanu

anyone from developer/moderator end, can make a tutorial (if video) for the nerds or non coders like us to fix this docker/integrity check error so that we can claim bonus and other points.

For workaround, If you use docker-compose method:

version: "3.9"

services:
  miner:
    image: ghcr.io/bossoq/twitch-channel-points-miner-v2
    stdin_open: true
    tty: true
    environment:
      - TERM=xterm-256color
    volumes:
      - ./analytics:/usr/src/app/analytics
      - ./cookies:/usr/src/app/cookies
      - ./logs:/usr/src/app/logs
      - ./run.py:/usr/src/app/run.py:ro
    ports:
      - "5000:5000"

If you use docker run method:

docker run \
    -v $(pwd)/analytics:/usr/src/app/analytics \
    -v $(pwd)/cookies:/usr/src/app/cookies \
    -v $(pwd)/logs:/usr/src/app/logs \
    -v $(pwd)/run.py:/usr/src/app/run.py:ro \
    -p 5000:5000 \
    ghcr.io/bossoq/twitch-channel-points-miner-v2

This will pull patched docker image from my repository.

Screen Shot 2565-09-15 at 16 53 30

bossoq avatar Sep 15 '22 12:09 bossoq

I am non programmer newbie, thats why i am asking for tutorial. how to use use docker-compose or docker run method? I had simply downloaded and was using Twitch Channel Points Miner v2 by Tkd Alex on Windows 11, thats all. nothing i know more

bsdanu avatar Sep 15 '22 13:09 bsdanu