Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Epic Games free games needs an action performed #387

Open
DocMAX opened this issue Mar 25, 2024 · 3 comments
Open

Epic Games free games needs an action performed #387

DocMAX opened this issue Mar 25, 2024 · 3 comments

Comments

@DocMAX
Copy link

DocMAX commented Mar 25, 2024

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
Copy link
Owner

claabs commented Mar 25, 2024

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
Copy link
Author

DocMAX commented Mar 25, 2024

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 [email protected] 
    user: "[email protected]"
[2024-03-23 12:00:08.652 +0000] INFO: Dispatching notification
    user: "[email protected]"
    reason: "LOGIN"
    url: "https://epic.myurl.de/omaxrb"
[2024-03-23 13:38:49.746 +0000] INFO: Successful login, saving auth token
    user: "[email protected]"
[2024-03-23 13:38:49.757 +0000] INFO: searchStrategy is `all`: searching for weekly and promotional games
    user: "[email protected]"
[2024-03-23 13:39:21.680 +0000] INFO: Available free games
    user: "[email protected]"
    availableGames: [
      "Call of the Wild: The Angler™",
      "Invincible Presents: Atom Eve"
    ]
[2024-03-23 13:39:21.868 +0000] INFO: Unpurchased free games
    user: "[email protected]"
    purchasableGames: []
[2024-03-23 13:39:22.132 +0000] INFO: No free games available
    user: "[email protected]"
[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 [email protected] 
    user: "[email protected]"
[2024-03-24 12:00:06.448 +0000] INFO: Dispatching notification
    user: "[email protected]"
    reason: "LOGIN"
    url: "https://epic.myurl.de/ovqmvz"
[2024-03-24 16:07:22.261 +0000] INFO: Successful login, saving auth token
    user: "[email protected]"
[2024-03-24 16:07:22.262 +0000] INFO: searchStrategy is `all`: searching for weekly and promotional games
    user: "[email protected]"
[2024-03-24 16:07:53.811 +0000] INFO: Available free games
    user: "[email protected]"
    availableGames: [
      "Call of the Wild: The Angler™",
      "Invincible Presents: Atom Eve"
    ]
[2024-03-24 16:07:54.002 +0000] INFO: Unpurchased free games
    user: "[email protected]"
    purchasableGames: []
[2024-03-24 16:07:54.275 +0000] INFO: No free games available
    user: "[email protected]"
[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 [email protected] 
    user: "[email protected]"
[2024-03-25 12:00:08.823 +0000] INFO: Dispatching notification
    user: "[email protected]"
    reason: "LOGIN"
    url: "https://epic.myurl.de/gpjbb"
[2024-03-25 13:59:39.686 +0000] INFO: Successful login, saving auth token
    user: "[email protected]"
[2024-03-25 13:59:39.687 +0000] INFO: searchStrategy is `all`: searching for weekly and promotional games
    user: "[email protected]"
[2024-03-25 14:00:13.289 +0000] WARN: Failed to lookup catalog free games
    user: "[email protected]"
    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: "[email protected]"
    availableGames: [
      "Call of the Wild: The Angler™",
      "Invincible Presents: Atom Eve"
    ]
[2024-03-25 14:00:13.661 +0000] INFO: Unpurchased free games
    user: "[email protected]"
    purchasableGames: []
[2024-03-25 14:00:14.072 +0000] INFO: No free games available
    user: "[email protected]"
[2024-03-25 14:00:14.072 +0000] INFO: Exiting successfully

@DocMAX
Copy link
Author

DocMAX commented Mar 25, 2024

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants