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

serviceResponse: "{\"errorStatus\":500}" message: "PersistedQueryNotFound" #289

Closed zzz6839 closed 1 year ago

zzz6839 commented 1 year ago

Describe the bug

No idea what this bug is

Screenshots or Logs

npm notice 
npm notice New major version of npm available! 8.19.2 -> 9.1.2
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.1.2>
npm notice Run `npm install -g npm@9.1.2` to update!
npm notice 

> epicgames-freegames-node@4.1.0 entrypoint-config
> node dist/src/entrypoint-config.js

Setting timezone: Asia/Shanghai
Run on startup: true
[2022-11-26 09:20:20.667 +0800] INFO: Started epicgames-freegames-node
    COMMIT_SHA: "f025957b56716edbe2de12dddbe078a1e4dc445e"
    BRANCH: "master"
    DISTRO: "alpine"
[2022-11-26 09:20:20.669 +0800] DEBUG: Performing version check
    PROJECT_NAME: "epicgames-freegames-node"
    BRANCH: "master"
    COMMIT_SHA: "f025957b56716edbe2de12dddbe078a1e4dc445e"
[2022-11-26 09:20:21.348 +0800] INFO: Checking free games for myemail@address 
    user: "myemail@address"
[2022-11-26 09:20:21.348 +0800] DEBUG: Launching a new browser
    user: "myemail@address"
[2022-11-26 09:20:24.027 +0800] DEBUG: Logging in with puppeteer
    user: "myemail@address"
[2022-11-26 09:20:24.027 +0800] DEBUG: Launching a new browser
    user: "myemail@address"
[2022-11-26 09:20:24.697 +0800] DEBUG: Launching a new page
    user: "myemail@address"
[2022-11-26 09:20:54.889 +0800] INFO: Successfully refreshed login
    user: "myemail@address"
[2022-11-26 09:20:55.683 +0800] INFO: searchStrategy is `all`: searching for weekly and promotional games
    user: "myemail@address"
[2022-11-26 09:20:55.685 +0800] DEBUG: Getting current weekly free games list
    user: "myemail@address"
[2022-11-26 09:20:55.694 +0800] DEBUG: Logging in with puppeteer
    user: "myemail@address"
[2022-11-26 09:20:55.694 +0800] DEBUG: Launching a new browser
    user: "myemail@address"
[2022-11-26 09:20:56.277 +0800] DEBUG: Launching a new page
    user: "myemail@address"
[2022-11-26 09:21:44.031 +0800] DEBUG: Getting product info using productSlug
    user: "myemail@address"
    productSlug: "star-wars-squadrons"
    offerType: "BASE_GAME"
[2022-11-26 09:21:45.223 +0800] DEBUG: Getting global free games
    user: "myemail@address"
[2022-11-26 09:22:01.198 +0800] DEBUG: Retrieved catalog data for 868 games
    user: "myemail@address"
[2022-11-26 09:22:01.214 +0800] DEBUG: Found 1 unique free games in catalog
    user: "myemail@address"
[2022-11-26 09:22:01.215 +0800] INFO: Available free games
    user: "myemail@address"
    availableGames: [
      "STAR WARS™: Squadrons"
    ]
[2022-11-26 09:22:01.215 +0800] DEBUG: Checking ownership and prerequesites on available games
    user: "myemail@address"
[2022-11-26 09:22:01.217 +0800] DEBUG: Getting product ownership info
    user: "myemail@address"
    offerId: "2ebc70bd2f0044a18e2734b4fcd9b48b"
    namespace: "bc2b0372eaa448469cb9a769f27acea1"
[2022-11-26 09:22:01.527 +0800] ERROR:
    user: "myemail@address"
    message: "PersistedQueryNotFound"
    correlationId: ""
    serviceResponse: "{\"errorStatus\":500}"
    stack: null
[2022-11-26 09:22:01.528 +0800] ERROR: PersistedQueryNotFound
    user: "myemail@address"
    err: {
      "type": "Error",
      "message": "PersistedQueryNotFound",
      "stack":
          Error: PersistedQueryNotFound
              at PuppetFreeGames.ownsGame (/usr/app/src/puppet/free-games.ts:292:13)
              at processTicksAndRejections (node:internal/process/task_queues:96:5)
              at async Promise.all (index 0)
              at PuppetFreeGames.getPurchasableFreeGames (/usr/app/src/puppet/free-games.ts:301:23)
              at PuppetFreeGames.getAllFreeGames (/usr/app/src/puppet/free-games.ts:397:30)
              at redeemAccount (/usr/app/src/index.ts:38:20)
              at async Promise.all (index 0)
              at main (/usr/app/src/index.ts:69:5)
    }
[2022-11-26 09:22:01.605 +0800] WARN: Current version
    COMMIT_SHA: "f025957b56716edbe2de12dddbe078a1e4dc445e"
    BRANCH: "master"
    DISTRO: "alpine"
Run once: false
Setting cron schedule as 04 21 * * *

Additional context

claabs commented 1 year ago

Epic stopped using this a bit ago. I figured it would be removed at some point. Thanks for the report!