[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'
}
For the first one check if the cookie page is shown, it messes things up and put errors like these kinds. The points seems to still be registered, but it's extremely slow. But for the second error it also started appearing for me since a few days, at the login. Not really sure what's causing it. I think it might be related to slow internet, as sometimes the page doesn't seems to have finished loading, but i'm not 100% sure.
[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'
}
[4/17/2024, 10:20:18 AM] [PID: 796] [LOG] [BROWSER] Created browser with User-Agent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0"
[4/17/2024, 10:20:19 AM] [PID: 796] [LOG] [MAIN] Starting DESKTOP browser
[4/17/2024, 10:20:30 AM] [PID: 796] [ERROR] [LOGIN] An error occurred:Error: page.goto: net::ERR_HTTP_RESPONSE_CODE_FAILURE at https://rewards.bing.com/signin
Call log:
- navigating to "https://rewards.bing.com/signin", waiting until "load"
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'
}
Node.js v21.7.2
Latest version, tried a fresh new install, searches are experiencing problems: [10/4/2024, 09:47:49] [PID: 3472] [ERROR] [SEARCH-BING] Search failed, An error occurred:TimeoutError: page.waitForSelector: Timeout 10000ms exceeded. Call log:
[10/4/2024, 09:43:02] [PID: 3472] [ERROR] [SEARCH-BING] Search failed, An error occurred:TimeoutError: page.click: Timeout 30000ms exceeded. Call log:
Disable headless and look at what the script is doing.
Keep on loading the page (internet is working fine) and suddendly stops:
[ERROR] [GO-HOME] An error occurred:TimeoutError: page.goto: Timeout 30000ms exceeded. Call log:
node:internal/process/promises:288 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' }
Node.js v18.12.1
For the first one check if the cookie page is shown, it messes things up and put errors like these kinds. The points seems to still be registered, but it's extremely slow. But for the second error it also started appearing for me since a few days, at the login. Not really sure what's causing it. I think it might be related to slow internet, as sometimes the page doesn't seems to have finished loading, but i'm not 100% sure.
[12/04/2024 09:10:13] [PID: 8988] [ERROR] [LOGIN] An error occurred:TimeoutError: page.goto: Timeout 30000ms 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' }
Node.js v20.11.1
I am also experiencing similar problems, will provide logs:
Latest NodeJS v21.7.3 Also happens with docker.
Same problem over here:
Tried https://github.com/TheNetsky/Microsoft-Rewards-Script/issues/93 ?
Worked!