epicgames-freegames-node icon indicating copy to clipboard operation
epicgames-freegames-node copied to clipboard

ERROR: Encountered an error during browser automation.

Open Freekers opened this issue 2 years ago • 0 comments

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 [email protected]
[2021-12-22 05:06:05.049 +0000] DEBUG: Refreshing login session
    user: "[email protected]"
[2021-12-22 05:06:12.395 +0000] INFO : Successfully refreshed login
    user: "[email protected]"
[2021-12-22 05:06:12.397 +0000] DEBUG: Getting global free games
    user: "[email protected]"
[2021-12-22 05:06:21.809 +0000] DEBUG: Retrieved catalog data for 597 games
    user: "[email protected]"
[2021-12-22 05:06:21.810 +0000] DEBUG: Found 1 unique free games in catalog
    user: "[email protected]"
[2021-12-22 05:06:21.810 +0000] INFO : Available free games
    user: "[email protected]"
    availableGames: [
      "Second Extinction™"
    ]
[2021-12-22 05:06:21.811 +0000] DEBUG: Checking ownership on available games
    user: "[email protected]"
[2021-12-22 05:06:21.811 +0000] DEBUG: Getting product ownership info
    user: "[email protected]"
    offerId: "f9daa3f1cd024908a2d8ef404a6b305d"
    namespace: "fcd3387b58864614b66952d0430d2b9a"
[2021-12-22 05:06:22.101 +0000] INFO : Unpurchased free games
    user: "[email protected]"
    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: "[email protected]"
    purchaseToken: "1e4751a726b545a8986ce95d41dfc985"
[2021-12-22 05:06:24.092 +0000] WARN : Error encountered during purchase
    user: "[email protected]"
    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: "[email protected]"
[2021-12-22 05:06:26.605 +0000] INFO : Loading purchase page
    user: "[email protected]"
    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: "[email protected]"
[2021-12-22 05:06:38.858 +0000] DEBUG: Waiting for receipt
    user: "[email protected]"
[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: "[email protected]"
    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: "[email protected]"
[2021-12-22 05:07:08.978 +0000] INFO : Go to this URL and purchase the game
    user: "[email protected]"
    url: "https://epicgamesbot.XXXXXXXXXX.nl/?targetId=9C2D5CD7D699ED6D7A8860DDC99F23C3"
[2021-12-22 05:07:09.512 +0000] DEBUG: Email sent.
    user: "[email protected]"
    reason: "PURCHASE ERROR"
    from: "mailserver@XXXXXXXXXX"
    to: "[email protected]"

I have the .png and .html file, please let me know if you'd like to have them for troubleshooting purposes.

Thanks!

Freekers avatar Dec 22 '21 16:12 Freekers