TheNetsky / Microsoft-Rewards-Script

Automated Microsoft Rewards script, using TypeScript, Cheerio and Playwright.
189 stars 44 forks source link

Mobile searches started throwing an error. Everything else works fine. #59

Closed Omniphantasm closed 8 months ago

Omniphantasm commented 8 months ago

Was working great up until yesterday, fails on mobile searches and throws an error now once it gets to them.

[1/31/2024, 2:08:43 PM] [PID: 43120] [LOG] [BROWSER] Created browser with User-Agent: "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Mobile Safari/537.36 EdgA/118.0.2088.66" [1/31/2024, 2:08:44 PM] [PID: 43120] [LOG] [MAIN] Starting MOBILE browser [1/31/2024, 2:09:15 PM] [PID: 43120] [ERROR] [LOGIN] An error occurred:TimeoutError: page.waitForSelector: Timeout 10000ms exceeded. Call log:

node:internal/process/promises:289 triggerUncaughtException(err, true / fromPromise /); ^

[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "undefined".] { code: 'ERR_UNHANDLED_REJECTION' }

luxcas0212 commented 8 months ago

this error is related to a problem with the microsoft servers, delete the mobile account data in the browser and run the bot again, for now there is not much to be done

Omniphantasm commented 8 months ago

That did it, thanks. Wouldn't have thought to try that.