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.34k stars 91 forks source link

Epic Games free games needs an action performed #387

Open DocMAX opened 6 months ago

DocMAX commented 6 months ago

Epic Games free games needs an action performed epicgames-freegames-node, reason: LOGIN, account: ... ...

Every day at 1 P.M. i get this mail. I log in and nothing happens. What is it for? It's so annoying.

claabs commented 6 months ago

You should only have to log in once ever if configured correctly. There was mention of a similar issue here, maybe it can help: #377

DocMAX commented 6 months ago

No i idea what to do but doesn't look healthy (email altered, docker container):

    everySixCronSchedule: "0 0,6,12,18 * * *"
[2024-03-23 12:00:07.518 +0000] INFO: Checking free games for my@email.addr 
    user: "my@email.addr"
[2024-03-23 12:00:08.652 +0000] INFO: Dispatching notification
    user: "my@email.addr"
    reason: "LOGIN"
    url: "https://epic.myurl.de/omaxrb"
[2024-03-23 13:38:49.746 +0000] INFO: Successful login, saving auth token
    user: "my@email.addr"
[2024-03-23 13:38:49.757 +0000] INFO: searchStrategy is `all`: searching for weekly and promotional games
    user: "my@email.addr"
[2024-03-23 13:39:21.680 +0000] INFO: Available free games
    user: "my@email.addr"
    availableGames: [
      "Call of the Wild: The Angler™",
      "Invincible Presents: Atom Eve"
    ]
[2024-03-23 13:39:21.868 +0000] INFO: Unpurchased free games
    user: "my@email.addr"
    purchasableGames: []
[2024-03-23 13:39:22.132 +0000] INFO: No free games available
    user: "my@email.addr"
[2024-03-23 13:39:22.132 +0000] INFO: Exiting successfully
[2024-03-24 12:00:05.241 +0000] INFO: Started epicgames-freegames-node
    COMMIT_SHA: "54c98a7c5e5d6b04d2be9f336a319be1b24c876d"
    BRANCH: "master"
    DISTRO: "alpine"
[2024-03-24 12:00:04.216 +0000] WARN: Your cronSchedule configuration is not set to run often enough to ensure the device auth refresh token can stay valid. This can result in device auth login prompts being sent on every run. It is recommended to set the cron schedule to run every 6 hours.
    yourCronSchedule: "0 12 * * *"
    everySixCronSchedule: "0 0,6,12,18 * * *"
[2024-03-24 12:00:05.373 +0000] INFO: Checking free games for my@email.addr 
    user: "my@email.addr"
[2024-03-24 12:00:06.448 +0000] INFO: Dispatching notification
    user: "my@email.addr"
    reason: "LOGIN"
    url: "https://epic.myurl.de/ovqmvz"
[2024-03-24 16:07:22.261 +0000] INFO: Successful login, saving auth token
    user: "my@email.addr"
[2024-03-24 16:07:22.262 +0000] INFO: searchStrategy is `all`: searching for weekly and promotional games
    user: "my@email.addr"
[2024-03-24 16:07:53.811 +0000] INFO: Available free games
    user: "my@email.addr"
    availableGames: [
      "Call of the Wild: The Angler™",
      "Invincible Presents: Atom Eve"
    ]
[2024-03-24 16:07:54.002 +0000] INFO: Unpurchased free games
    user: "my@email.addr"
    purchasableGames: []
[2024-03-24 16:07:54.275 +0000] INFO: No free games available
    user: "my@email.addr"
[2024-03-24 16:07:54.275 +0000] INFO: Exiting successfully
[2024-03-25 12:00:03.275 +0000] WARN: Your cronSchedule configuration is not set to run often enough to ensure the device auth refresh token can stay valid. This can result in device auth login prompts being sent on every run. It is recommended to set the cron schedule to run every 6 hours.
    yourCronSchedule: "0 12 * * *"
    everySixCronSchedule: "0 0,6,12,18 * * *"
[2024-03-25 12:00:04.097 +0000] INFO: Started epicgames-freegames-node
    COMMIT_SHA: "54c98a7c5e5d6b04d2be9f336a319be1b24c876d"
    BRANCH: "master"
    DISTRO: "alpine"
[2024-03-25 12:00:04.286 +0000] INFO: Checking free games for my@email.addr 
    user: "my@email.addr"
[2024-03-25 12:00:08.823 +0000] INFO: Dispatching notification
    user: "my@email.addr"
    reason: "LOGIN"
    url: "https://epic.myurl.de/gpjbb"
[2024-03-25 13:59:39.686 +0000] INFO: Successful login, saving auth token
    user: "my@email.addr"
[2024-03-25 13:59:39.687 +0000] INFO: searchStrategy is `all`: searching for weekly and promotional games
    user: "my@email.addr"
[2024-03-25 14:00:13.289 +0000] WARN: Failed to lookup catalog free games
    user: "my@email.addr"
    err: {
      "type": "Error",
      "message": "Unexpected token '<', \"<html>\r\n<h\"... is not valid JSON",
      "stack":
          SyntaxError: Unexpected token '<', "<html>
          <h"... is not valid JSON
              at ExecutionContext.#evaluate (/usr/app/node_modules/puppeteer-core/src/cdp/ExecutionContext.ts:304:34)
              at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
              at ExecutionContext.evaluate (/usr/app/node_modules/puppeteer-core/src/cdp/ExecutionContext.ts:157:12)
              at IsolatedWorld.evaluate (/usr/app/node_modules/puppeteer-core/src/cdp/IsolatedWorld.ts:143:12)
              at CdpFrame.evaluate (/usr/app/node_modules/puppeteer-core/src/api/Frame.ts:467:12)
              at CdpPage.evaluate (/usr/app/node_modules/puppeteer-core/src/api/Page.ts:2181:12)
              at PuppetFreeGames.request (/usr/app/src/puppet/free-games.ts:46:18)
              at PuppetFreeGames.getCatalogFreeGames (/usr/app/src/puppet/free-games.ts:98:28)
              at PuppetFreeGames.getAllFreeGames (/usr/app/src/puppet/free-games.ts:409:28)
      "name": "SyntaxError"
    }
[2024-03-25 14:00:13.462 +0000] INFO: Available free games
    user: "my@email.addr"
    availableGames: [
      "Call of the Wild: The Angler™",
      "Invincible Presents: Atom Eve"
    ]
[2024-03-25 14:00:13.661 +0000] INFO: Unpurchased free games
    user: "my@email.addr"
    purchasableGames: []
[2024-03-25 14:00:14.072 +0000] INFO: No free games available
    user: "my@email.addr"
[2024-03-25 14:00:14.072 +0000] INFO: Exiting successfully
DocMAX commented 6 months ago

Ok i changed my config to ""cronSchedule": "0 0,6,12,18 *", ..." Also took the config from the main github page. Now i will see...