Windows200000 / TwitchDropsMiner-updated

An app that allows you to AFK mine timed Twitch drops, with automatic drop claiming and channel switching.
MIT License
354 stars 19 forks source link

Fatal error encountered...application terminated #154

Closed T4bletopG4mes closed 3 months ago

T4bletopG4mes commented 3 months ago

Description

No idea what causes it but I just noticed it and it seems to have started happening recently.

To Reproduce

Maybe its related with the No Man's Sky drops, not sure.

Expected behavior

Should say "no drops available to mine currently" since Im dont have any for now.

Observed behavior

See screenshot.

Screenshots

image

Logs

21:22:22: Fatal error encountered: 21:22:22: 21:22:22: Traceback (most recent call last): 21:22:22: File "main.py", line 160, in main 21:22:22: File "twitch.py", line 772, in run 21:22:22: File "twitch.py", line 817, in _run 21:22:22: File "twitch.py", line 1670, in fetch_inventory 21:22:22: File "asyncio\tasks.py", line 571, in _wait_for_one 21:22:22: File "twitch.py", line 1608, in fetch_campaigns 21:22:22: File "twitch.py", line 1575, in gql_request 21:22:22: exceptions.MinerException: GQL error: [{'message': 'PersistedQueryNotFound'}] 21:22:22: 21:22:22: Exiting... 21:22:23: 21:22:23: Application Terminated. 21:22:23: Close the window to exit the application.

OS

Windows 10 (64-bit)

Build

.exe

Version/Commit

v15.7.1

Additional context

No response

IRhoAias commented 3 months ago

Same Here image

gibbed commented 3 months ago

Looking at the request from the miner vs Twitch itself, it looks like the sha256Hash for the DropCampaignDetails persisted query has changed:

Old:

{"persistedQuery":{"version":1,"sha256Hash":"e5916665a37150808f8ad053ed6394b225d5504d175c7c0b01b9a89634c57136"}}

New:

{"persistedQuery":{"version":1,"sha256Hash":"e7acdecb05429a62f5984bdcb27ee938ae20543579bf73c3ae44e7c822bc4f54"}}
Windows200000 commented 3 months ago

@gibbed we were looking at it at the same time. This is technically a duplicate, but I will leave it, because the old issue is a very random crash that could be due to a slow rollout of this hash change, but oculd also be unrelated. Fix will be out in in-dev seeon. I'll also make a release for it.

gibbed commented 3 months ago

@gibbed we were looking at it at the same time. This is technically a duplicate, but I will leave it, because the old issue is a very random crash that could be due to a slow rollout of this hash change, but oculd also be unrelated. Fix will be out in in-dev seeon. I'll also make a release for it.

This specific issue was opened recently which is why I replied to this one rather than an older one since it was likely the OP was referring to the new issue with DropCampaignDetails; but yeah, thanks for the quick fixing!

Windows200000 commented 3 months ago

@gibbed @IRhoAias @T4bletopG4mes in-dev works, I will close this once it's in master.

Skyl3lazer commented 3 months ago

Here it is again

15:00:19: Fatal error encountered: 15:00:19: 15:00:19: Traceback (most recent call last): 15:00:19: File "twitch.py", line 1736, in get_live_streams 15:00:19: File "twitch.py", line 1575, in gql_request 15:00:19: exceptions.MinerException: GQL error: [{'message': 'PersistedQueryNotFound'}] 15:00:19: 15:00:19: The above exception was the direct cause of the following exception: 15:00:19: 15:00:19: Traceback (most recent call last): 15:00:19: File "main.py", line 160, in main 15:00:19: File "twitch.py", line 772, in run 15:00:19: File "twitch.py", line 923, in _run 15:00:19: File "twitch.py", line 1747, in get_live_streams 15:00:19: exceptions.MinerException: Game: albion-online 15:00:19: 15:00:19: Exiting... 15:00:20: 15:00:20: Application Terminated. 15:00:20: Close the window to exit the application.

on 8/7

gibbed commented 3 months ago

Here it is again

159