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

Error from hCaptcha get_cookie request

Open maximegy opened this issue 3 years ago • 11 comments

docker pull latest image today for migration to Rpi3 v3 to Amd64 v4. Follow github tuto for changes in config.json file.

Describe the bug

Followed the github readme for v3 to v4 migration. Go to https://dashboard.hcaptcha.com/signup?type=accessibility and put my email adress. right clic on link and copy link. Paste on config.json file in the "hcaptchaAccessibilityUrl": "https://accounts.hcaptcha.com/verify_email/[...]",

run docker-compose up -d && docker logs -f epic_free_games.

In the logs I have this message : image

I copy paste the ling to do the captcha by myself and it works. But the hcaptcha manipulation don't work for me.

Screenshots or Logs

[2021-11-02 15:35:21.083 +0100] INFO  (52 on e53edf4b3f29): Checking free games for [...]
[2021-11-02 15:35:28.706 +0100] WARN  (52 on e53edf4b3f29): Error from hCaptcha get_cookie request, continuing without hCaptcha accessibility cookies
    status: 401
    errorBody: {
      "status": "error"
    }
[2021-11-02 15:35:36.626 +0100] INFO  (52 on e53edf4b3f29): Go to this URL and do something
    user: "[...]"
    url: "https://[...]"
[2021-11-02 15:36:20.207 +0100] INFO  (52 on e53edf4b3f29): Successfully logged in fresh
    user: "[...]"
[2021-11-02 15:36:20.822 +0100] INFO  (52 on e53edf4b3f29): Available free games
    user: "[...]"
    availableGames: [
      "DARQ: Complete Edition"
    ]
[2021-11-02 15:36:21.203 +0100] INFO  (52 on e53edf4b3f29): Unpurchased free games
    user: "[...]"
    purchasableGames: [
      "DARQ: Complete Edition"
    ]
[2021-11-02 15:36:21.204 +0100] INFO  (52 on e53edf4b3f29): Purchasing DARQ: Complete Edition
[2021-11-02 15:36:23.733 +0100] INFO  (52 on e53edf4b3f29): Done purchasing DARQ: Complete Edition
Run once: false
Setting cron schedule as 5 16 * * *

Configuration (please complete the following information):

  • Hosting solution [e.g. reverse proxy, HTTPS/HTTP, caching, localhost]: docker on Debian. Container behind traefik for reverse proxy.

maximegy avatar Nov 02 '21 14:11 maximegy

Have you tried this many times today? hCaptcha will softban your IP address and/or hCaptcha user after 5 attempts in 24 hours, which is what that 401 error typically indicates.

claabs avatar Nov 02 '21 15:11 claabs

Hi, I have this error at the first execution.

maximegy avatar Nov 04 '21 09:11 maximegy

I am seeing similar after not having run for a few days.

KairuByte avatar Nov 16 '21 23:11 KairuByte

I'm seeing same issue here -My schedule is set to run 17 01 * * * so only once a day and then manually on startup. I noticed games weren't being purchased today and checked the logs and saw this after a restart, it emailed me to manually complete the captcah process though

CorneliousJD avatar Nov 19 '21 19:11 CorneliousJD

Hi, I get the same issue after setting up the container. Receiving a cookie by using the link works just fine. image

kesch095 avatar Nov 27 '21 23:11 kesch095

I tried updating the stealth plugin in https://github.com/claabs/epicgames-freegames-node/commit/e61c1899206eb6c3fe7d7e4544d9483ada153e0d, but it doesn't seem to help. I imagine hCaptcha is somehow detecting that this is being automated (either via request signatures or patterns) and rejecting it.

I had imagined this would happen eventually, which is why the captcha solving portal exists.

It is just a warning and not a hard error, so as long as you solve the captcha manually, it should retain the login session for around 30 or more days.

claabs avatar Nov 28 '21 01:11 claabs

Sorry about digging up an old issue but do you think this issue could be worth looking into ? I was looking on hCaptcha accessibility and stumbled onto your project, so I may contribute on my free time. Do you think a fix is possible or it isn't worth effort ?

NoOverflow avatar Jun 28 '22 22:06 NoOverflow

Do you think a fix is possible or it isn't worth effort ?

hCaptcha's sole purpose as a business is to detect bots. They'll always find a way to detect any automation. Currently there's not an easy to adopt evasion set that can beat it.

claabs avatar Jun 30 '22 01:06 claabs

I see. I tried anyway with a valid accessibility cookie but epic games just outright sends an invalid captcha response so even if I could somehow get a cookie programmatically it wouldn't be of much use. Thanks

NoOverflow avatar Jun 30 '22 12:06 NoOverflow

Would integrating the puppeteer-extra-plugin-recaptcha be worth it? Despite the name it can also solve hcaptcha. It uses a paid captcha solving service though.

hallekamp avatar Jul 08 '22 23:07 hallekamp

Would integrating the puppeteer-extra-plugin-recaptcha be worth it? Despite the name it can also solve hcaptcha. It uses a paid captcha solving service though.

Captcha solving services won't work due to Epic's Talon service that wraps the captcha.

claabs avatar Jul 11 '22 01:07 claabs

No longer relevant in latest version

claabs avatar Feb 15 '24 01:02 claabs