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

Unable to claim this week's games #253

Closed FlyGuyGo closed 6 months ago

FlyGuyGo commented 2 years ago

Describe the bug Using the latest Docker image charlocharlie/epicgames-freegames:latest, I am unable to claim this week's free games. It has an error while looking up the games but it seems to find them. However, it does not prompt me to solve a Captcha.

Screenshots or Logs

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

Setting timezone: America/New_York
Run on startup: true
[2022-06-23 16:04:51.819 -0400] INFO: Started epicgames-freegames-node
    COMMIT_SHA: "47faa12e69dfb31af11c60fc3eacabf75c4901eb"
    BRANCH: "master"
    DISTRO: "alpine"
[2022-06-23 16:04:51.820 -0400] DEBUG: Performing version check
    PROJECT_NAME: "epicgames-freegames-node"
    BRANCH: "master"
    COMMIT_SHA: "47faa12e69dfb31af11c60fc3eacabf75c4901eb"
[2022-06-23 16:04:51.964 -0400] INFO: Checking free games for Redacted
    user: "Redacted"
[2022-06-23 16:04:51.964 -0400] DEBUG: Launching a new browser
    user: "Redacted"
[2022-06-23 16:04:52.318 -0400] DEBUG: Setting hCaptcha accessibility cookies
[2022-06-23 16:04:52.318 -0400] DEBUG: Launching a new browser
[2022-06-23 16:04:52.508 -0400] DEBUG: Launching a new page
[2022-06-23 16:04:58.104 -0400] DEBUG: Error from hCaptcha get_cookie request, continuing without hCaptcha accessibility cookies
    status: 401
    errorBody: {
      "status": "error"
    }
[2022-06-23 16:05:06.893 -0400] DEBUG: Logging in with puppeteer
    user: "Redacted"
[2022-06-23 16:05:06.893 -0400] DEBUG: Launching a new browser
    user: "Redacted"
[2022-06-23 16:05:07.189 -0400] DEBUG: Launching a new page
    user: "Redacted"
[2022-06-23 16:05:12.715 -0400] INFO: Successfully refreshed login
    user: "Redacted"
[2022-06-23 16:05:12.927 -0400] INFO: searchStrategy is `all`: searching for weekly and promotional games
    user: "Redacted"
[2022-06-23 16:05:12.928 -0400] DEBUG: Getting current weekly free games list
    user: "Redacted"
[2022-06-23 16:05:12.959 -0400] DEBUG: Setting hCaptcha accessibility cookies
[2022-06-23 16:05:12.959 -0400] DEBUG: Launching a new browser
[2022-06-23 16:05:13.191 -0400] DEBUG: Launching a new page
[2022-06-23 16:05:18.812 -0400] DEBUG: Error from hCaptcha get_cookie request, continuing without hCaptcha accessibility cookies
    status: 401
    errorBody: {
      "status": "error"
    }
[2022-06-23 16:05:26.170 -0400] DEBUG: Logging in with puppeteer
    user: "Redacted"
[2022-06-23 16:05:26.170 -0400] DEBUG: Launching a new browser
    user: "Redacted"
[2022-06-23 16:05:26.354 -0400] DEBUG: Launching a new page
    user: "Redacted"
[2022-06-23 16:05:31.937 -0400] DEBUG: Getting product info using productSlug
    user: "Redacted"
    productSlug: "car-mechanic-simulator-2018"
    offerType: "BASE_GAME"
[2022-06-23 16:05:31.938 -0400] DEBUG: Getting product info using productSlug
    user: "Redacted"
    productSlug: "a-game-of-thrones-5858a3"
    offerType: "BASE_GAME"
[2022-06-23 16:05:32.191 -0400] WARN: Failed to lookup weekly free games
    user: "Redacted"
    err: {
      "type": "Error",
      "message": "Evaluation failed: Error: {\"error\":true}\n    at <anonymous>:7:23",
      "stack":
          Error: Evaluation failed: Error: {"error":true}
              at <anonymous>:7:23
              at ExecutionContext._evaluateInternal (/usr/app/node_modules/puppeteer/src/common/ExecutionContext.ts:273:13)
              at runMicrotasks (<anonymous>)
              at processTicksAndRejections (node:internal/process/task_queues:96:5)
              at ExecutionContext.evaluate (/usr/app/node_modules/puppeteer/src/common/ExecutionContext.ts:140:12)
              at PuppetFreeGames.request (/usr/app/src/puppet/free-games.ts:44:18)
              at PuppetFreeGames.getProduct (/usr/app/src/puppet/free-games.ts:227:33)
              at /usr/app/src/puppet/free-games.ts:191:33
              at async Promise.all (index 1)
              at PuppetFreeGames.getWeeklyFreeGames (/usr/app/src/puppet/free-games.ts:175:7)
              at PuppetFreeGames.getAllFreeGames (/usr/app/src/puppet/free-games.ts:325:27)
    }
[2022-06-23 16:05:32.242 -0400] DEBUG: Getting global free games
    user: "Redacted"
[2022-06-23 16:05:33.031 -0400] DEBUG: Retrieved catalog data for 45 games
    user: "Redacted"
[2022-06-23 16:05:33.031 -0400] DEBUG: Found 2 unique free games in catalog
    user: "Redacted"
[2022-06-23 16:05:33.031 -0400] INFO: Available free games
    user: "Redacted"
    availableGames: [
      "Car Mechanic Simulator 2018",
      "A Game Of Thrones: The Board Game Digital Edition"
    ]
[2022-06-23 16:05:33.031 -0400] DEBUG: Checking ownership on available games
    user: "Redacted"
[2022-06-23 16:05:33.032 -0400] DEBUG: Getting product ownership info
    user: "Redacted"
    offerId: "5eb27cf1747c40b5a0d4f5492774678d"
    namespace: "226306adde104c9092247dcd4bfa1499"
[2022-06-23 16:05:33.032 -0400] DEBUG: Getting product ownership info
    user: "Redacted"
    offerId: "a125d72a47a1490aba78c4e79a40395d"
    namespace: "1b737464d3c441f8956315433be02d3b"
[2022-06-23 16:05:33.135 -0400] INFO: Unpurchased free games
    user: "Redacted"
    purchasableGames: [
      "Car Mechanic Simulator 2018",
      "A Game Of Thrones: The Board Game Digital Edition"
    ]
[2022-06-23 16:05:33.146 -0400] INFO: Purchasing Car Mechanic Simulator 2018
    user: "Redacted"
[2022-06-23 16:05:33.150 -0400] DEBUG: Setting hCaptcha accessibility cookies
[2022-06-23 16:05:33.151 -0400] DEBUG: Launching a new browser
[2022-06-23 16:05:33.321 -0400] DEBUG: Launching a new page
[2022-06-23 16:05:38.644 -0400] DEBUG: Error from hCaptcha get_cookie request, continuing without hCaptcha accessibility cookies
    status: 401
    errorBody: {
      "status": "error"
    }
[2022-06-23 16:05:46.111 -0400] DEBUG: Logging in with puppeteer
    user: "Redacted"
[2022-06-23 16:05:46.111 -0400] DEBUG: Launching a new browser
    user: "Redacted"
[2022-06-23 16:05:46.277 -0400] DEBUG: Launching a new page
    user: "Redacted"
[2022-06-23 16:05:47.273 -0400] INFO: Loading purchase page
    user: "Redacted"
    purchaseUrl: "https://www.epicgames.com/store/purchase?highlightColor=0078f2&offers=1-226306adde104c9092247dcd4bfa1499-5eb27cf1747c40b5a0d4f5492774678d&orderId&purchaseToken&showNavigation=true"
[2022-06-23 16:06:03.522 -0400] DEBUG: Clicking placeOrderButton
    user: "Redacted"
[2022-06-23 16:06:08.736 -0400] DEBUG: Waiting for receipt
    user: "Redacted"
[2022-06-23 16:06:08.749 -0400] DEBUG: Captcha detected
    user: "Redacted"
zycboss commented 2 years ago

I got pushed and solved the Captcha, then get the same Error output, and no notification was sent about the claiming result.

WrayOfSunshine commented 2 years ago

I'm hitting the same "it isn't pushing the captcha" issue: [2022-06-24 07:41:27.052 -0500] DEBUG: Captcha detected

I only use Discord for my notifiers, if that's relevant.

xNookie commented 2 years ago

I'm facing the same issue, even without configured hcaptcha. It stucks at "Captcha detected", no notification to solve a new captcha to proceed.

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

Setting timezone: Europe/Berlin Run on startup: true [2022-07-15 23:13:10.344 +0200] INFO: Started epicgames-freegames-node COMMIT_SHA: "a7629cb5b837b3a9242bf0a0e13b94006bc58dad" BRANCH: "master" DISTRO: "alpine" [2022-07-15 23:13:10.345 +0200] DEBUG: Performing version check PROJECT_NAME: "epicgames-freegames-node" BRANCH: "master" COMMIT_SHA: "a7629cb5b837b3a9242bf0a0e13b94006bc58dad" [2022-07-15 23:13:10.563 +0200] INFO: Checking free games for xxxxxx@xxxxxx.com user: "xxxxxx@xxxxxx.com" [2022-07-15 23:13:10.563 +0200] DEBUG: Launching a new browser user: "xxxxxx@xxxxxx.com" [2022-07-15 23:13:10.743 +0200] DEBUG: hcaptchaAccessibilityUrl not configured, captchas are less likely to be bypassed. Follow this guide to set it up: https://github.com/claabs/epicgames-freegames-node#hcaptcha-accessibility-cookies [2022-07-15 23:13:10.747 +0200] DEBUG: Logging in with puppeteer user: "xxxxxx@xxxxxx.com" [2022-07-15 23:13:10.747 +0200] DEBUG: Launching a new browser user: "xxxxxx@xxxxxx.com" [2022-07-15 23:13:10.931 +0200] DEBUG: Launching a new page user: "xxxxxx@xxxxxx.com" [2022-07-15 23:13:17.562 +0200] INFO: Successfully refreshed login user: "xxxxxx@xxxxxx.com" [2022-07-15 23:13:17.934 +0200] INFO: searchStrategy is all: searching for weekly and promotional games user: "xxxxxx@xxxxxx.com" [2022-07-15 23:13:17.935 +0200] DEBUG: Getting current weekly free games list user: "xxxxxx@xxxxxx.com" [2022-07-15 23:13:17.936 +0200] DEBUG: hcaptchaAccessibilityUrl not configured, captchas are less likely to be bypassed. Follow this guide to set it up: https://github.com/claabs/epicgames-freegames-node#hcaptcha-accessibility-cookies [2022-07-15 23:13:17.937 +0200] DEBUG: Logging in with puppeteer user: "xxxxxx@xxxxxx.com" [2022-07-15 23:13:17.937 +0200] DEBUG: Launching a new browser user: "xxxxxx@xxxxxx.com" [2022-07-15 23:13:18.245 +0200] DEBUG: Launching a new page user: "xxxxxx@xxxxxx.com" [2022-07-15 23:13:25.910 +0200] DEBUG: Getting product info using productSlug user: "xxxxxx@xxxxxx.com" productSlug: "idle-champions-of-the-forgotten-realms" offerType: "BASE_GAME" [2022-07-15 23:13:26.026 +0200] DEBUG: Getting global free games user: "xxxxxx@xxxxxx.com" [2022-07-15 23:13:40.355 +0200] DEBUG: Retrieved catalog data for 774 games user: "xxxxxx@xxxxxx.com" [2022-07-15 23:13:40.357 +0200] DEBUG: Found 1 unique free games in catalog user: "xxxxxx@xxxxxx.com" [2022-07-15 23:13:40.358 +0200] INFO: Available free games user: "xxxxxx@xxxxxx.com" availableGames: [ "Idle Champions of the Forgotten Realms", "Wonder Boy The Dragons Trap" ] [2022-07-15 23:13:40.358 +0200] DEBUG: Checking ownership on available games user: "xxxxxx@xxxxxx.com" [2022-07-15 23:13:40.359 +0200] DEBUG: Getting product ownership info user: "xxxxxx@xxxxxx.com" offerId: "a9748abde1c94b66aae5250bb9fc5503" namespace: "7e508f543b05465abe3a935960eb70ac" [2022-07-15 23:13:40.360 +0200] DEBUG: Getting product ownership info user: "xxxxxx@xxxxxx.com" offerId: "bd18a76d848946b0ac5f5c692c8b4757" namespace: "e1e92771f6774072bb1b8d0a0a6197f7" [2022-07-15 23:13:40.565 +0200] INFO: Unpurchased free games user: "xxxxxx@xxxxxx.com" purchasableGames: [ "Wonder Boy The Dragons Trap" ] [2022-07-15 23:13:40.570 +0200] INFO: Purchasing Wonder Boy The Dragons Trap user: "xxxxxx@xxxxxx.com" [2022-07-15 23:13:40.572 +0200] DEBUG: hcaptchaAccessibilityUrl not configured, captchas are less likely to be bypassed. Follow this guide to set it up: https://github.com/claabs/epicgames-freegames-node#hcaptcha-accessibility-cookies [2022-07-15 23:13:40.576 +0200] DEBUG: Logging in with puppeteer user: "xxxxxx@xxxxxx.com" [2022-07-15 23:13:40.576 +0200] DEBUG: Launching a new browser user: "xxxxxx@xxxxxx.com" [2022-07-15 23:13:40.888 +0200] DEBUG: Launching a new page user: "xxxxxx@xxxxxx.com" [2022-07-15 23:13:43.066 +0200] INFO: Loading purchase page user: "xxxxxx@xxxxxx.com" purchaseUrl: "https://www.epicgames.com/store/purchase?highlightColor=0078f2&offers=1-e1e92771f6774072bb1b8d0a0a6197f7-bd18a76d848946b0ac5f5c692c8b4757&orderId&purchaseToken&showNavigation=true" [2022-07-15 23:13:56.915 +0200] DEBUG: Clicking placeOrderButton user: "xxxxxx@xxxxxx.com" [2022-07-15 23:13:57.133 +0200] DEBUG: Clicking euRefundAgreeButton user: "xxxxxx@xxxxxx.com" [2022-07-15 23:13:58.513 +0200] DEBUG: Waiting for receipt user: "xxxxxx@xxxxxx.com" [2022-07-15 23:13:59.764 +0200] DEBUG: Captcha detected user: "xxxxxx@xxxxxx.com"

claabs commented 6 months ago

No longer relevant in latest version