Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

epic-games: docker: captcha before it claims the game #183

Open
Darkkingwill opened this issue Aug 18, 2023 · 186 comments
Open

epic-games: docker: captcha before it claims the game #183

Darkkingwill opened this issue Aug 18, 2023 · 186 comments

Comments

@Darkkingwill
Copy link

Darkkingwill commented Aug 18, 2023

Hello. im getting a captcha right before it claims the game. Its says one more step. Im using an unraid docker if that helps

@guipace
Copy link

guipace commented Aug 18, 2023

+1 on this issue

@vogler
Copy link
Owner

vogler commented Aug 18, 2023

I don't get any. What's your setup? Shared IP via CGNAT? Do you get captcha challenges in your local browser as well?

@maxp1110
Copy link

Since I solve the captcha-problem during login, I also get a hcaptcha-challenge everytime it tries to claim the game. Have to log into noVNC to solve. No problems when doing it on my desktop maschine.
Vodafone Cable as ISP.

@DevXen
Copy link

DevXen commented Aug 18, 2023

Yeah I get this issue too with the unraid docker. But this has one happened for the past week or two.

@Darkkingwill
Copy link
Author

i was looking through the logs and it told me untrusted ip too many login attempts. i had to get another ip address. I ended up running the container through a vpn and i will test it next time theres free games

@Cexitime
Copy link

Hi, been having this issue as well, I can click the captures in the vnc window to solve them temporarily, This is the logs when the issue occurs, not sure why its complaining about too many login attempts, its literally this container that logs in and it does so successfully every time. Not behind CGNAT on IPv4 only, no IPv6 Available for me yet.

I'll refresh my IP later and check again next time a game is released. Forgot to mention im running this in a docker container on Unraid

19/08/2023 11:49:24 am
Current free game: Black Book
19/08/2023 11:49:24 am
Not in library yet! Click GET.
19/08/2023 11:49:38 am
Got hcaptcha challenge! Lost trust due to too many login attempts? You can solve the captcha in the browser or get a new IP address.
19/08/2023 11:49:55 am
Claimed successfully!
19/08/2023 11:50:03 am
Current free game: Dodo Peak
19/08/2023 11:50:03 am
Not in library yet! Click GET.
19/08/2023 11:50:15 am
Got hcaptcha challenge! Lost trust due to too many login attempts? You can solve the captcha in the browser or get a new IP address.
19/08/2023 11:50:30 am
Claimed successfully!

@vogler
Copy link
Owner

vogler commented Aug 19, 2023

Ok, just to confirm: everyone that has the issue is using Unraid?
Please try if you have the issue using the docker run ... command on a different machine in your local network.

@vogler
Copy link
Owner

vogler commented Aug 19, 2023

Are you using this template: https://github.com/Nackophilz/unraid_templates/blob/main/free-games-claimer/free-games-claimer.xml?
There seems nothing wrong with it, so it must be something about Unraid.
It's weird, but there have been other issues dependent on the host OS: #149 (HAOS), #173 (Arch).

@Cexitime
Copy link

Are you using this template: https://github.com/Nackophilz/unraid_templates/blob/main/free-games-claimer/free-games-claimer.xml? There seems nothing wrong with it, so it must be something about Unraid. It's weird, but there have been other issues dependent on the host OS: #149 (HAOS), #173 (Arch).

I am using that template, it is the one available on the community apps plugin for Unraid.

@maxp1110
Copy link

No, I am not using unraid. Proxmox Server with a docker lxc image from tteck (proxmox helper scripts). Inside the lxc, I run your docker run command.
Best

@yoshimo
Copy link

yoshimo commented Aug 19, 2023

I use a Pi4 with UmbrelOS and run the docker container linked on this repos main page directly
I get the captcha even when i renewed my ip adresses right before starting the docker container.

@DevXen
Copy link

DevXen commented Aug 19, 2023

Screenshot_20230819_102818_Spark
Here's an email I'm getting every day. But cause of the capcha after you click get the games.

I haven't claimed them yet. And can this weekend to try anything you may want. I can vpn to my server the rest of the week but I can't move the window to click on or do anything with the webgui.

@yoshimo
Copy link

yoshimo commented Aug 19, 2023

I tried a few times to solve the captchas and it still occurs on the next try

@pechex
Copy link

pechex commented Aug 19, 2023

Same issue on rpi4 running DietPi

@UltraHQ
Copy link

UltraHQ commented Aug 19, 2023

Running on rpi4 raspios docker, same issue
edit: having this issue since I installed it, so since at least a month

Captcha does not occur on my desktop pc though

@vogler
Copy link
Owner

vogler commented Aug 20, 2023

Here's an email I'm getting every day.

@DevXen I thought about that problem before. In cases like this, it might be good to have the option to only send notifications when the status changed.

@yoshimo
Copy link

yoshimo commented Aug 20, 2023

But if you run it standalone without supervision you won't notice if the store changes and the tool breaks. You should notify either way.

@vogler
Copy link
Owner

vogler commented Aug 20, 2023

You would. It would just not send the same message multiple times.

@vogler
Copy link
Owner

vogler commented Aug 20, 2023

It's a bit of detective work to figure out what may be the reason.

Many of you mentioned rpi4. Maybe your setups are too slow since captcha services do computations in JS and check the performance. Did someone with a rpi4 try running it without docker?
You can always run it for free in the cloud: https://github.com/vogler/free-games-claimer/wiki/Host-and-run-free-games-claimer-in-the-cloud-periodically

I made a spreadsheet where you can put in your data: https://docs.google.com/spreadsheets/d/1ulC4E59Hs7aDvpgN-D_QFT3lEmf_j88zY9TMve6faQ4/edit?usp=sharing

  • captcha fgc: no / login / claim / both
  • catpcha other: do you get a challenge on the host / other computer in your network?
  • docker/VM: no / docker version / podman / proxmox / lxc / VM...

Make sure that you run the latest version and keep your data/browser (having to login every time may also increase the risk of getting a captcha challenge).

@minkshaman
Copy link

added mine for you

@Nackophilz
Copy link

The same goes for me: for some time now, I've been having constant hcaptchas ^^'.

I use my template for unraid of course haha

I don't think it's related to Unraid or anything, but maybe it's just the method that ended up being flagged?

@KarlLee830
Copy link

I also encountered the same problem, also using unraid docker

@yoshimo
Copy link

yoshimo commented Aug 20, 2023

It feels like the browser is a lot slower in the docker container compared to the computer, although i think a raspberry with 4x1,8ghz and 4gb ram shouldn't be too slow. It worked fine a few weeks before.

@Lavoslav
Copy link

Docker in UnRaid, template from community apps,
captcha just before claim on both games
added in spreadsheet

@DGMayor
Copy link

DGMayor commented Aug 21, 2023

added to spreadsheet. I just set this up about two weeks ago, and Epic has been giving me captcha since the start, unfortunately.

@DevXen
Copy link

DevXen commented Aug 25, 2023

So I wanted to add it's not an IP based limit. I just connected to my home server vpn and claimed the game on my phone just fine with no captcha.

@nodiaque
Copy link

I have 3 docker and 2 out of 3 does it. It started out of nowhere.

@Slothoncrack
Copy link

I also have this problem, every time. A few weeks ago it used to work fine. Running on Raspi 4 4GB, docker crontab.

@Tylerjet
Copy link

@Tylerjet doesn't exit now anymore on login errors.

Yeah no more exit but still get unsolvable captcha

@vogler
Copy link
Owner

vogler commented Jun 27, 2024

Ok, so there's also a difference between container environments?

  • @NeoTrace82: automated login without captcha, claim with captcha but manual solving worked
    • docker?, ARM, Debian/Ubuntu?
  • @Tylerjet: captcha during login that can't be solved manually? Idk if there's a difference between the login captcha and claim captcha - Playwright is waiting for different things (URL vs. element), maybe it's blocking something, noticed some weird behavior having to click multiple times.
    • LXC, x86, Debian/Ubuntu or something else?

I'll add a script to easily get some fingerprint.json, maybe from https://amiunique.org/fingerprint.

@vogler
Copy link
Owner

vogler commented Jun 27, 2024

@Tylerjet can you run it in Docker and see if it makes a difference?

@NeoTrace82
Copy link

@NeoTrace82: automated login without captcha, claim with captcha but manual solving worked

  • docker?, ARM, Debian/Ubuntu?

Pi5, Arm, Rasbian Bookworm running in a docker container, browser based VNC

@lostb1t
Copy link

lostb1t commented Jun 28, 2024

Asahi linux (arm) debian. Docker.

Still getting captcha on claim.

Something is probaply still leaking. Adding the fingerprint will help a lot with debugging

@Nackophilz
Copy link

Nackophilz commented Jun 29, 2024

I still ways get a captcha when I log in, and when I bypass it by logging in via Steam for example, I get one on claim, impossible to resolve captchas manually even with the last docker image (juste got the update)

@Tylerjet
Copy link

@Tylerjet can you run it in Docker and see if it makes a difference?

have not had the chance to try docker yet (possibly next week) but as @Nackophilz mentioned this is pretty much the same for me, i can bypass initial login by using steam but still get captcha at claim on the Debian 12 lxc

@Albirew
Copy link

Albirew commented Jun 29, 2024

i had captcha but was able to solve it btw

@AndryS0
Copy link

AndryS0 commented Jul 12, 2024

I am using cookies from my browser because I was unable to log in due to this problem #279
Got this message after "Click GET":

Got hcaptcha challenge! Lost trust due to too many login attempts? You can solve the captcha in the browser or get a new IP address.

Completing captcha via noVNC failed: "Failed to challenge captcha, please try again later."
After this I tried to get it from the browser on main system (with the same cookies) and it asked me to log in again, then I finally did it.
Maybe the session has to be fresh to pick up the game without capcha?

PC running on Windows 10, using Docker with WSL. Static IP from regional ISP

@nett00n
Copy link
Contributor

nett00n commented Jul 16, 2024

Baremetal runs on Windows worked fine for me, but now I switched to linux (PopOS 22.04)

Login from actual FireFox: Works fine
Baremetal FGC with data folder from windows installations: Incorrect response. Please refresh the page
Baremetal FGC with empty data folder: Incorrect response. Please refresh the page
Docker with data folder from windows installations: Incorrect response. Please refresh the page
Docker with empty data folder: Incorrect response. Please refresh the page
VirtualBox Windows 10 with data folder from windows installations: Incorrect response. Please refresh the page
VirtualBox Windows 10 with empty data folder: Incorrect response. Please refresh the page

🤯

Update: Virtualbox Windows 10 actual firefox also works fine

@Simpuhl
Copy link

Simpuhl commented Jul 19, 2024

LXC Container seems to still be a no-go got a captchu when attempting to login, upon attempting to complete the captcha the script crashes/imediately closes:

Got a captcha during login (likely due to too many attempts)! You may solve it in the browser, get a new IP or try again in a few hours.
Login error: Incorrect response. Please refresh the page.
--- Exception:
page.waitForURL: Target page, context or browser has been closed
=========================== logs ===========================
waiting for navigation to "https://store.epicgames.com/en-US/free-games" until "load"
============================================================
    at /root/fgc/epic-games.js:131:16

Side topic, can you tell me how you created the lxc container? I always used helper scripts but this one isn;'t on there

@BetterToAutomateTheWorld

Hi, i'm experiencing the same issue, does anybody fixed it ? Or have workaround tips

@DGMayor
Copy link

DGMayor commented Aug 24, 2024

Apparently all these failed captchas took their toll. Just received an email:

**You’re receiving this email because we noticed suspicious activity on your Epic Games account. Most often, the cause of this type of activity is the result of using the same password on multiple websites, use of a weak password, or phishing.

To keep your account safe, we’ve initiated a password reset, so you’ll need to change the password before logging in again. Below you’ll find helpful tips to ensure your account remains secure!

| Use this link to reset your password:**

@Julian1984
Copy link

Julian1984 commented Sep 6, 2024

Having the same issue (couldn’t get a OK from the captcha) using a W11 VM over Proxmox, when claiming the game.
Login resolved via setting an existing cookie from a non virtualize computer. As said, a full W11, with dedicated graphics card, and so on…

@jordyamc
Copy link

Doing some testing I got to pass the cloudflare captcha using puppeteer-real-browser, puppeteer API is different from playwright so a lot needs to be migrated, but at least the simple test I did trying to log in was successful

@slimshizn
Copy link

Doing some testing I got to pass the cloudflare captcha using puppeteer-real-browser, puppeteer API is different from playwright so a lot needs to be migrated, but at least the simple test I did trying to log in was successful

Any chance you can make a pr? Maybe we can finally nip this in the bud.

@CoreyD97
Copy link

CoreyD97 commented Sep 24, 2024

I did some extra testing on this last night, running the script on a Proxmox host. Re-enabling webgl and disabling the webgl.vendor stealth evasion allowed me to claim games with SHOW=1 but not headless.

I also commented out the userAgent and locale overrides too. I imagine locale could have contributed for me, since it would expect en-GB but received en-US.

@FroggMaster
Copy link

FroggMaster commented Sep 26, 2024

Having the same issue (couldn’t get a OK from the captcha) using a W11 VM over Proxmox, when claiming the game. Login resolved via setting an existing cookie from a non virtualize computer. As said, a full W11, with dedicated graphics card, and so on…

Can you elaborate on how you did this? Seems like a reasonable enough workaround in the meantime.

@FroggMaster
Copy link

I've copied the userAgent string from my personal Windows/Firefox install. I replaced the string that is currently present in epic-games.js

userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0', // see replace of Headless in util.newStealthContext. TODO Windows UA enough to avoid 'device not supported'? update if browser is updated?

After changing this I have been able to successfully claim games without any captcha when I was previously being requested to manually solve a captcha for every single claim on Epic Games; The new userAgent string I'm using only differs in version being slightly more up to date than the one that is configured by default in the code.

@W1ldAustin
Copy link

Can you elaborate on how you did this? Seems like a reasonable enough workaround in the meantime.

I apologize, I missed the notification about this. It was working but was causing my IP to get blocked after a day and only 1 run, no matter how many times I changed the IP, it would get blocked, so it ended up not working fully.

@jlopezr
Copy link

jlopezr commented Oct 11, 2024 via email

@FroggMaster
Copy link

FroggMaster commented Oct 13, 2024

What about using a user agents library like https://www.npmjs.com/package/user-agents in the line that you are commenting on? El vie, 11 oct 2024 a las 1:44, Frog @.>) escribió:

I've copied the userAgent string from my personal Windows/Firefox install. I replaced the string that is currently present in epic-games.js

userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0', // see replace of Headless in util.newStealthContext. TODO Windows UA enough to avoid 'device not supported'? update if browser is updated?
After changing this I have been able to successfully claim games without any captcha when I was previously being requested to manually solve a captcha for every single claim on Epic Games; The new userAgent string I'm using only differs in version being slightly more up to date than the one that is configured by default in the code. — Reply to this email directly, view it on GitHub <#183 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFCRSMGC7YK33W4GRTEVYDZ24GMNAVCNFSM6AAAAAA3UZON72VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBWGIZTIOBVHA . You are receiving this because you are subscribed to this thread.Message ID: @.>

That's not a bad idea; I wrote some personal additions to pull a userAgent from https://www.useragents.me/#latest-windows-desktop-useragents I'm still doing a little bit of testing right now but using the latest userAgent has been working for me so far. I'm hesitant to say it's working consistently just yet, but I'll report back once I've had more opportunity to test more claim attempts.

@ds-sebastian
Copy link

Could Flaresolverr be useful? Probably only for Cloudflare captchas

@EfficiencyVI
Copy link

I was unable to solve the login captcha so I linked my steam account and logged in with it in the Firefox instance. Now I'm logged in and don't get a captcha anymore. So maybe that is a possible workaround.

@h4de5
Copy link

h4de5 commented Oct 19, 2024

just tested this as well. logged in to epic locally. connected it to steam. than opened the docker container, logged in to steam and used the login via steam button in the epic login form. there no captcha was shown and it could continue "buying" the games

@stayupthetree
Copy link

just tested this as well. logged in to epic locally. connected it to steam. than opened the docker container, logged in to steam and used the login via steam button in the epic login form. there no captcha was shown and it could continue "buying" the games

This works until checkout, it wants captcha then

@wjbeckett
Copy link

yep, I get that too. 😞

@Jason-Coyne
Copy link

Any hope for this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests