vogler / free-games-claimer

Automatically claims free games on the Epic Games Store, Amazon Prime Gaming and GOG.
GNU Affero General Public License v3.0
2.2k stars 139 forks source link

[Epic] Redirected to download client instead of "Thanks for your order" #233

Open andre-paulo98 opened 8 months ago

andre-paulo98 commented 8 months ago

After claiming "Q.U.B.E. ULTIMATE BUNDLE" I was redirected to the page to download Epic Games (https://store.epicgames.com/en-US/download), instead of showing the "Thanks for your order" that ended the loop.

I run this script for 2 different accounts, and both were redirected to the download page. It was pretty fast and I didn't have the option to record enabled, so I don't know if "Thanks for your order" was ever in the screen.

vogler commented 8 months ago

I also got a timeout waiting for Thanks for your order! today (game was claimed successfully, but didn't redirect to download the launcher like you write):

$ node epic-games.js
2023-10-12 15:57:01.422 started checking epic-games
...
Free games: [ 'https://store.epicgames.com/en-US/p/godlike-burger-4150a0' ]
  This game contains mature content recommended only for ages 18+
Current free game: Godlike Burger
  Not in library yet! Click GET.
page.waitForSelector: Timeout 20000ms exceeded.
=========================== logs ===========================
waiting for locator('text=Thanks for your order!') to be visible
============================================================
    at file:///Users/voglerr/dev/Web/free-games-claimer/epic-games.js:230:20 {
  name: 'TimeoutError'
}
  Failed to claim! To avoid captchas try to get a new IP address.
claim game: 29.536s
claim all games: 29.657s
Recorded video: /Users/voglerr/dev/Web/free-games-claimer/data/record/2e6845c0-99ef-46c3-ae91-54f584ce586d.webm

Video:

https://github.com/vogler/free-games-claimer/assets/493741/ce653493-4961-438d-84db-1920298d2b14

Thank you! is displayed first and stays on screen a bit longer:

image

Then the box with Thanks for your order! it is waiting for showed up, but was flickering and disappeared again:

image

Maybe it has to do with this Pop out this video button from Firefox - the box above only started to flicker/disappear just before this button was faded in:

image
vogler commented 8 months ago

Changed it to waitFor attached instead of visible. Maybe that's enough. Not sure if it's a no-op though (if it's already attached and just made visible - but I guess not since it contains some order number that comes from the server).