claabs / epicgames-freegames-node

Automatically login and find available free games the Epic Games Store. Sends you a prepopulated checkout link so you can complete the checkout after logging in. Supports multiple accounts, login sessions, and scheduled runs.
https://hub.docker.com/r/charlocharlie/epicgames-freegames
MIT License
1.33k stars 89 forks source link

Can't make this working #284

Closed csihama closed 1 year ago

csihama commented 1 year ago

`----------------------------------------------------------- Add-on: Epic Games Free Automatically login and redeem promotional free games from Epic Games Store

Add-on version: ee3dff4b29757e28282cada9bcb3e8f84f1c3041-2022-10-30-2 You are running the latest version of this add-on. System: Home Assistant OS 9.3 (aarch64 / raspberrypi4-64) Home Assistant Core: 2022.11.1 Home Assistant Supervisor: 2022.10.2

Please, share the above information when looking for help or support in, e.g., GitHub, forums https://github.com/alexbelgium/hassio-addons

/etc/cont-init.d/20-folders.sh: executing /etc/cont-init.d/99-run.sh: executing [01:56:58] INFO: The following json files were found in /config/addons_config/epicgamesfree and will be used in the app. Changing those files will require to restart the addon. ... processing config.json

[01:56:58] INFO: Starting the app

epicgames-freegames-node@4.1.0 entrypoint-config node dist/src/entrypoint-config.js Setting timezone: Europe/Budapest Run on startup: true [2022-11-07 01:57:05.340 +0100] INFO: Started epicgames-freegames-node COMMIT_SHA: "ee3dff4b29757e28282cada9bcb3e8f84f1c3041" BRANCH: "master" DISTRO: "alpine" [2022-11-07 01:57:05.730 +0100] WARN: A newer version of epicgames-freegames-node is available! docker pull this image to update. [2022-11-07 01:57:05.735 +0100] INFO: Checking free games for xxxxx@gmail.com user: "xxxxxx@gmail.com" [2022-11-07 01:57:43.432 +0100] ERROR: Encountered an error during browser automation. Saved a screenshot for debugging purposes. user: "xxxxxx@gmail.com" errorFile: "error-2022-11-07T00:57:37.070Z.png" [2022-11-07 01:57:43.454 +0100] ERROR: Navigation timeout of 30000 ms exceeded user: "xxxxxxx@gmail.com" err: { "type": "TimeoutError", "message": "Navigation timeout of 30000 ms exceeded", "stack": TimeoutError: Navigation timeout of 30000 ms exceeded at /usr/app/node_modules/puppeteer/src/common/LifecycleWatcher.ts:211:18 "name": "TimeoutError" } [2022-11-07 01:57:43.507 +0100] WARN: Current version COMMIT_SHA: "ee3dff4b29757e28282cada9bcb3e8f84f1c3041" BRANCH: "master" DISTRO: "alpine" Run once: false Setting cron schedule as 5 16 * Starting... /etc/cont-init.d/00-banner.sh: executing`

config.json "runOnStartup": true, "cronSchedule": "5 16 *", "logLevel": "info", "webPortalConfig": { "baseUrl": "https://localhost:3000" }, "accounts": [ { "email": "xxxxxx@gmail.com", "password": "xxxxxxxx", "totp": "xxxxxx" } ],

docker ps 140934af4da3 ghcr.io/alexbelgium/epicgamesfree-aarch64:ee3dff4b29757e28282cada9bcb3e8f84f1c3041-2022-10-30-2 "tini -- docker-entr…" 5 minutes ago Up 5 seconds 0.0.0.0:3000->3000/tcp, :::3000->3000/tcp addon_db21ed7f_epicgamesfree

error-2022-11-06T23:02:15.121Z.png EGP24G~F

Webpage: image

Tried every solution to find, but can't.

I also found that only these ports LISTEN image

claabs commented 1 year ago

The Pi is likely too slow to meet the 30 second timeout. You should set browserNavigationTimeout to a higher value in the config.

See: https://github.com/alexbelgium/hassio-addons/issues/485

csihama commented 1 year ago

Thank you @claabs :)