-
-
Notifications
You must be signed in to change notification settings - Fork 170
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 crash: [{'message': 'service error', 'path': ['game']}] #415
Comments
Hello. "service error" signifies a problem with Twitch internals, not the miner. These usually go away on their own after some time passes, once Twitch fixes the issue. Which games you have added to your priority list? |
This error also occurs when I farm RUST drop. |
@daeeros Auto-restart makes no sense for a project like this, as it's going to run into the very same error right away, and all you end up with, is the miner spamming the Twitch internal API with errors - a very sure way of encouraging them to take more and further steps to bot-proof their system and essentially kill this project. If auto-restart would be a good idea, I'd implement it ages ago. Please don't do this. |
Can confirm:
On latest master version Infos: pip updated |
@DevilXD |
When a "service error" occurs, there's nothing you can do to help - restarting won't fix it. This is an internal Twitch error that cannot be "handled" by any other way, than just waiting (even a couple of hours) and then restarting the miner. Handling this in a more graceful way was tracked by #347 for some time, but then it got closed due to the issue being no longer present (until again now). Regardless, I've noticed that unrequested application crashes could use some more notification noise to them, which caecef4 should help with. I'll try to debug this for Rust specifically in the mean time. So far I haven't been able to reproduce it, Rust starts mining just fine for me. |
Can you tell what this method call does? Does it log to a file by any chance? If so I maybe can provide you my response JSON :/ |
In the past, this error would only occur occasionally and the frequency was very low. But this time, the frequency of the error is very frequent. This error will definitely occur here within 2 hours. Could it be caused by someone abusing the mechanism? For example, divide 100 systems on a powerful server and then use it for 100 accounts at the same time? |
@someC0d3r That's a debug logger call. You'd need to run the miner with the GQL debug flag: The logging system was never fleshed out enough for me to consider using it over "live" debugging via the in-built VSCode debugger, but I guess it's worth a shot. A word of caution though: note that the resulting log may include some sensitive information about your Twitch account, that'd allow a 3rd party to authorize as you, which could result in "unpleasant" consequences (general "your account has been hacked or hijacked" / potential loss of account). I never built into it any system that'd filter those out. The log file should thus either be thoroughly examined by you, to remove any traces of sensitive information (you have to have the knowledge of what to look for), and any omission means risking the safety of your Twitch account, which means that some "more personal" way of giving me the log file would be strongly preferred. I personally have zero to no interest accessing someone else's account, but if you don't trust me with the log file either, I'd suggest simply not sending one at all. If you have Discord, I'm available under |
@wlk3773208 I've seen others setup true account farms, that'd run this miner (among other ones) on thousands of accounts. This is considered not only Twitch API abuse, but also an abuse of this project, which I do not support in the slightest. For a more descriptive journey about this, you can check out the project goals: https://github.com/DevilXD/TwitchDropsMiner#project-goals All of this contributes to Twitch putting out preventive measures, that makes it harder to run a personal, single-account miner like this one. But there isn't much I can do to combat this, unfortunately. Regarding the issue, it's most likely an extra condition on Twitch side, which I'm yet to discover. Since I can't reproduce the error myself, there isn't much I can do for now. I'll keep trying, I guess. |
It happens when running on VM and using the manual built solution (adding a line of code) provided by another person in issue #386 |
Please tell me it's not |
Looks like problem is gone. I have only one crash this morning, and then program works very well |
I bet it was just Twitch themselves messing something up internally on their side, and this being the byproduct. I should really get to some proper handling for "service error" specifically. This isn't one where retrying after mere seconds makes any sense, the miner will need to essentially enter idle and wait until it's over. I mentioned this already under #347, but it got closed without adding said handling, so that was pretty bad on my part. |
I'm having this problem for around 2 months now, is there a solution? |
There def seems to be an issue with Destiny 2 today. In the past two hours, three separate tickets have been closed as duplicates of the same problem, and I'm encountering the same error—I'm sure others are too. For now, the only solution is to either add Destiny 2 to the exclusion list or remove it from the priority list if you're using "priority list only" mode. Doing either seems to resolve the issue for the time being. |
Just started happening again today
|
Can confirm adding Destiny 2 to my exclusion list worked. thx @JourneyOver |
I've put more effort into investigating this issue, by checking how the Twitch website handles this. I found out that the Please let me know if that resolves the issue for now. |
So far it looks to be good! :D |
On e79ab9d, if I don't block Destiny 2, I still get:
|
hmm wonder why you are still able to run into the issue, as I tested the latest commit on an account with just destiny 2 in the priority list as well as testing with all three different priority modes and haven't ran back into the issue anymore since these last 2 commits so I'm wondering if you have something else possibly going on.. |
Twitch seems to have some kind of a rolling deployment going on. Some people experience a crash, some not. Some get the updated hash value, some are still left running the old one. Eventually though, the change is migrated to all users. The timeframe for this appears to be at least a few days, I'd say 2-3. The error seems to be originating from the bulk status check now. I'll investigate further. EDIT: The error pointed at the "AvailableDrops" section of the bulk status check, so I've checked the GQL hash, and it was outdated as well. Please try again with the latest master. |
Feels like we really need to find a way to update the hashes automatically some how periodically or something just so that we stop running into issues due to a hash being out of date xD Makes me wonder if there are any other hashes that are out of date that we don't know about yet. |
@dogodogowoof Cheers for verifying =) @JourneyOver Outdated hashes don't do anything, until Twitch starts to change around their internals. Once they do so, they usually change the query around as well, and then hash changes. The result of this is either the service crashing when using the old hash (service error), or the query stops being cached on the server side (PersistedQueryNotFound). I don't really know where the hashes come from, but I know that getting that information is nigh impossible. I know it's the raw GQL query being "compressed" into a hash form, where both the client and the server know the actual query, and by sending the hash itself, both can relay the information of what the client wants, and what the server is supposed to respond with, with minimal information being actually sent as the request. Technically, I could send raw GQL queries without hashes, but that'd only get rid of the "PersistedQueryNotFound" error, and it'd still crash when Twitch would change around their internal structures. The only solution would be to do the impossible and analyze the web client to extract hashes out of it, but the problem is that it's minified JS with some quite cryptic pieces of code, or it's straight up encrypted/mangled JS that specifically targets being hard to reverse-engineer. The simplest solution for now is to just update the hashes manually, as they don't really change that often. For example, the last time the Other examples beyond the updates from the last 2 days:
All of the above operations, plus the "Inventory" hash, were updated 20 months ago before that: bfd3893 If you'd like to investigate on your own, here are the two main files I'm pretty sure are responsible for the Twitch web client functionality:
|
Hmm I might take a look at things when I have some free time to really dig down into it, but yea I guess if they don't change as often as I thought they was going to then it might just be pointless. |
For me this error occurs every time im starting twitchdropsminer |
Temporarily add |
still the same error |
The program crashes in few seconds after opening with text:
07:32:37: Fatal error encountered:
07:32:37:
07:32:37: Traceback (most recent call last):
07:32:37: File "main.py", line 158, in main
07:32:37: File "twitch.py", line 764, in run
07:32:37: File "twitch.py", line 916, in _run
07:32:37: File "twitch.py", line 1709, in get_live_streams
07:32:37: File "twitch.py", line 1566, in gql_request
07:32:37: exceptions.MinerException: GQL error: [{'message': 'service error', 'path': ['game']}]
Try to reinstall, but that doesn't work
The text was updated successfully, but these errors were encountered: