vogler / free-games-claimer

Automatically claims free games on the Epic Games Store, Amazon Prime Gaming and GOG.
GNU Affero General Public License v3.0
2.21k stars 139 forks source link

Error reported after running:node:internal/process/promises:289 triggerUncaughtException(err, true /* fromPromise */); #189

Closed shanlanCoding closed 6 months ago

shanlanCoding commented 10 months ago
[root@localhost fgc]# docker run --rm -p 6080:6080 -v fgc:/fgc/data  --env-file=/fgc/config.env --privileged ec6dd9a5995d node epic-games
Xvfb display server created screen with resolution 1280x1280
VNC is running on port 5900 (no password!)
noVNC (VNC via browser) is running on http://localhost:6080

2023-08-21 12:27:13.251 started checking epic-games
Signed in as ***********
Free games: [
  'https://store.epicgames.com/en-US/p/black-book',
  'https://store.epicgames.com/en-US/p/dodo-peak-159276'
]
  This game contains mature content recommended only for ages 18+
Current free game: Black Book
  Already in library! Nothing to claim.
Current free game: Dodo Peak
  Already in library! Nothing to claim.
node:internal/process/promises:289
            triggerUncaughtException(err, true /* fromPromise */);
            ^

ProtocolError: Target closed
    at /fgc/node_modules/playwright-core/lib/server/firefox/ffConnection.js:189:16
    at new Promise (<anonymous>)
    at FFSession.send (/fgc/node_modules/playwright-core/lib/server/firefox/ffConnection.js:185:12)
    at RawMouseImpl.move (/fgc/node_modules/playwright-core/lib/server/firefox/ffInput.js:91:24)
    at Mouse.move (/fgc/node_modules/playwright-core/lib/server/input.js:153:23)
    at Mouse.click (/fgc/node_modules/playwright-core/lib/server/input.js:180:12)
    at /fgc/node_modules/playwright-core/lib/server/dom.js:468:109
    at /fgc/node_modules/playwright-core/lib/server/dom.js:430:13
    at FrameManager.waitForSignalsCreatedBy (/fgc/node_modules/playwright-core/lib/server/frames.js:114:26)
    at ElementHandle._performPointerAction (/fgc/node_modules/playwright-core/lib/server/dom.js:424:57) {
  sessionClosed: true
}

Node.js v19.9.0

I ran it through EpicAuto, and the sh content is shown in the following figure: image The screenshot of the error message is as follows: image

vogler commented 6 months ago

Duplicate of #170. Why are you using some id to run it instead of the command from the Readme? This won't update.

arnoldknott commented 6 months ago

Did you forget an await in your code?

threeng0227 commented 3 days ago

Node 20 and RN 0.73 not working