Microsoft-Rewards-Farmer icon indicating copy to clipboard operation
Microsoft-Rewards-Farmer copied to clipboard

[BUG] Randomly fails when running from Task Scheduler

Open donovanj44 opened this issue 2 years ago • 1 comments

MAKE SURE THE ERROR IS NOT FROM YOU, THIS IS THE MOST FREQUENT CASE

Error Log Traceback (most recent call last): File "C:\Users\josep\Microsoft-Rewards-Farmer\ms_rewards_farmer.py", line 800, in completeMorePromotions(browser) File "C:\Users\josep\Microsoft-Rewards-Farmer\ms_rewards_farmer.py", line 681, in completeMorePromotions morePromotions = getDashboardData(browser)['morePromotions'] File "C:\Users\josep\Microsoft-Rewards-Farmer\ms_rewards_farmer.py", line 479, in getDashboardData dashboard = json.loads(dashboard) File "C:\Python310\lib\json_init_.py", line 346, in loads return _default_decoder.decode(s) File "C:\Python310\lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Python310\lib\json\decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Screenshot of the page https://imgur.com/a/agDqg2b

Source code of dashboard Copy the source code of the Microsoft Rewards Dashboard Page and paste it on Gist. Then share me the link of the gist here. https://gist.github.com/donovanj44/38056cb7a6a05a5b690eaeb9c2c9d264 (Removed email and names for security)

This error randomly occurs when the task is ran, while sometimes the task completes fine, but this results in many overlapping windows.

donovanj44 avatar Jun 16 '22 12:06 donovanj44

Same problem here

Gitzzly avatar Aug 31 '22 16:08 Gitzzly

Fixed with v3.0 #188

charlesbel avatar Jul 19 '23 08:07 charlesbel