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.
Since a few days I'm having difficulties claiming games. I get an email to enter/finish the captcha and once done, I get redirected again to the shopping cart.
This is what I found in the log files:
[2021-12-22 05:06:04.857 +0000] INFO : Started epicgames-freegames-node
COMMIT_SHA: "5de6791407ed492e0b0bd658ce01062e3d0e1119"
BRANCH: "master"
DISTRO: "alpine"
[2021-12-22 05:06:04.858 +0000] DEBUG: Performing version check
PROJECT_NAME: "epicgames-freegames-node"
BRANCH: "master"
COMMIT_SHA: "5de6791407ed492e0b0bd658ce01062e3d0e1119"
[2021-12-22 05:06:05.045 +0000] INFO : Checking free games for XXXXXXXXXX@gmail.com
[2021-12-22 05:06:05.049 +0000] DEBUG: Refreshing login session
user: "XXXXXXXXXX@gmail.com"
[2021-12-22 05:06:12.395 +0000] INFO : Successfully refreshed login
user: "XXXXXXXXXX@gmail.com"
[2021-12-22 05:06:12.397 +0000] DEBUG: Getting global free games
user: "XXXXXXXXXX@gmail.com"
[2021-12-22 05:06:21.809 +0000] DEBUG: Retrieved catalog data for 597 games
user: "XXXXXXXXXX@gmail.com"
[2021-12-22 05:06:21.810 +0000] DEBUG: Found 1 unique free games in catalog
user: "XXXXXXXXXX@gmail.com"
[2021-12-22 05:06:21.810 +0000] INFO : Available free games
user: "XXXXXXXXXX@gmail.com"
availableGames: [
"Second Extinction™"
]
[2021-12-22 05:06:21.811 +0000] DEBUG: Checking ownership on available games
user: "XXXXXXXXXX@gmail.com"
[2021-12-22 05:06:21.811 +0000] DEBUG: Getting product ownership info
user: "XXXXXXXXXX@gmail.com"
offerId: "f9daa3f1cd024908a2d8ef404a6b305d"
namespace: "fcd3387b58864614b66952d0430d2b9a"
[2021-12-22 05:06:22.101 +0000] INFO : Unpurchased free games
user: "XXXXXXXXXX@gmail.com"
purchasableGames: [
"Second Extinction™"
]
[2021-12-22 05:06:22.102 +0000] INFO : Purchasing Second Extinction™
[2021-12-22 05:06:23.168 +0000] DEBUG: purchaseToken
user: "XXXXXXXXXX@gmail.com"
purchaseToken: "1e4751a726b545a8986ce95d41dfc985"
[2021-12-22 05:06:24.092 +0000] WARN : Error encountered during purchase
user: "XXXXXXXXXX@gmail.com"
errorBody: {
"error": true,
"message": "We could not confirm your purchase at this time. Please try again later.",
"order": null,
"syncToken": "803aaf3f-4435-464f-a6eb-XXXXXXXXXX"
}
code: 400
[2021-12-22 05:06:24.092 +0000] WARN (HTTPError): Response code 400 (Bad Request)
HTTPError: Response code 400 (Bad Request)
at Request.<anonymous> (/usr/app/node_modules/got/dist/source/as-promise/index.js:117:42)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
[2021-12-22 05:06:24.093 +0000] WARN : API purchase experienced an error, trying puppeteer purchase
[2021-12-22 05:06:24.094 +0000] 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
[2021-12-22 05:06:24.097 +0000] DEBUG: Purchasing with puppeteer (short)
user: "XXXXXXXXXX@gmail.com"
[2021-12-22 05:06:26.605 +0000] INFO : Loading purchase page
user: "XXXXXXXXXX@gmail.com"
purchaseUrl: "https://www.epicgames.com/store/purchase?highlightColor=0078f2&offers=1-fcd3387b58864614b66952d0430d2b9a-f9daa3f1cd024908a2d8ef404a6b305d&orderId&purchaseToken&showNavigation=true"
[2021-12-22 05:06:35.722 +0000] DEBUG: Clicking placeOrderButton
user: "XXXXXXXXXX@gmail.com"
[2021-12-22 05:06:38.858 +0000] DEBUG: Waiting for receipt
user: "XXXXXXXXXX@gmail.com"
[2021-12-22 05:07:08.970 +0000] ERROR: Encountered an error during browser automation. Saved a screenshot and page HTML for debugging purposes.
user: "XXXXXXXXXX@gmail.com"
errorImage: "config/error-2021-12-22T05-07-08.862Z.png"
errorHtml: "config/error-2021-12-22T05-07-08.862Z.html"
[2021-12-22 05:07:08.971 +0000] INFO : Asking a human for help...
user: "XXXXXXXXXX@gmail.com"
[2021-12-22 05:07:08.978 +0000] INFO : Go to this URL and purchase the game
user: "XXXXXXXXXX@gmail.com"
url: "https://epicgamesbot.XXXXXXXXXX.nl/?targetId=9C2D5CD7D699ED6D7A8860DDC99F23C3"
[2021-12-22 05:07:09.512 +0000] DEBUG: Email sent.
user: "XXXXXXXXXX@gmail.com"
reason: "PURCHASE ERROR"
from: "mailserver@XXXXXXXXXX"
to: "XXXXXXXXXX@gmail.com"
I have the .png and .html file, please let me know if you'd like to have them for troubleshooting purposes.
Since a few days I'm having difficulties claiming games. I get an email to enter/finish the captcha and once done, I get redirected again to the shopping cart.
This is what I found in the log files:
I have the .png and .html file, please let me know if you'd like to have them for troubleshooting purposes.
Thanks!