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

Error: Too many login attempts. (Captcha issues during login) #97

Closed
tomvaneyck opened this issue Mar 28, 2021 · 90 comments
Closed

Error: Too many login attempts. (Captcha issues during login) #97

tomvaneyck opened this issue Mar 28, 2021 · 90 comments
Labels
bug Something isn't working v4

Comments

@tomvaneyck
Copy link

Since yesterday there seems to be a problem with the login process. For the first time in a few weeks I received a request to solve a captcha. Today I tried again with the newest image version of the container: I solved three of these captchas in a row, after which the logs show the following error:

Error: Too many login attempts. This probably because something is wrong with the captcha process.
        at Login.login (/usr/app/src/login.ts:100:13)
        at Login.login (/usr/app/src/login.ts:136:22)
        at processTicksAndRejections (internal/process/task_queues.js:97:5)
Full logs from start of the container:
Incoming env vars:
RUN_ON_STARTUP: 
CRON_SCHEDULE: 
RUN_ONCE: 
Getting settings from JSON: /usr/app/config/config.json
Setting config variables
Run on startup: true
Run once: false
> epicgames-freegames-node@3.0.0 start /usr/app
> node dist/src/index.js
[2021-03-28 14:31:28.601 +0200] INFO  (47 on 69db50974012): Checking free games for my@mail.tld 
[2021-03-28 14:31:34.891 +0200] INFO  (47 on 69db50974012): Action requested. Waiting for Captcha to be solved
    user: "my@mail.tld"
    id: "2ee8bd7e-f623-426f-b4cd-0b7e5391fe2f"
[2021-03-28 14:31:54.164 +0200] INFO  (47 on 69db50974012): Action requested. Waiting for Captcha to be solved
    user: "my@mail.tld"
    id: "c56d40ed-fdfa-46fc-babf-27d5ed36eeb1"
[2021-03-28 14:32:09.230 +0200] INFO  (47 on 69db50974012): Action requested. Waiting for Captcha to be solved
    user: "my@mail.tld"
    id: "8d3df284-a158-4ad1-94a4-9617c6eab675"
[2021-03-28 14:32:23.572 +0200] ERROR (47 on 69db50974012): Too many login attempts. This probably because something is wrong with the captcha process.
    Error: Too many login attempts. This probably because something is wrong with the captcha process.
        at Login.login (/usr/app/src/login.ts:100:13)
        at Login.login (/usr/app/src/login.ts:136:22)
        at processTicksAndRejections (internal/process/task_queues.js:97:5)
My configuration

{
    "accounts": [
        {
            "email": "my@mail.tld",
            "password": "mypwd",
            "totp": "mytotp"
        }
    ],
    "onlyWeekly": true,
    "runOnStartup": true,
    "intervalTime": 60,
    "cronSchedule": "0 12 * * *",
    "runOnce": false,
    "logLevel": "info",
    "baseUrl": "http://myurl:3000",
    "email": {
        somemailconfig
    }
}

@tomvaneyck tomvaneyck added the bug Something isn't working label Mar 28, 2021
@TheBozzz34
Copy link

TheBozzz34 commented Mar 30, 2021

I am also having this problem, not sure whats causing it it

Error from docker:

error

Config:

config

@ThomasLachaux
Copy link

Hey !

I also encounter this issue :/

@GoliathLabs
Copy link

Good day,
I have the same problem here. Freegames also runs in Docker. Let me know if more information is needed :)

@Wunderharke
Copy link

Wunderharke commented Mar 31, 2021

Same here but with a slighly other traceback:

    Error: Too many login attempts. This probably because something is wrong with the captcha process.
        at Login.login (/usr/app/src/login.ts:100:13)
        at Login.login (/usr/app/src/login.ts:136:22)
        at runMicrotasks (<anonymous>)
        at processTicksAndRejections (internal/process/task_queues.js:97:5)

@Chr0nicT
Copy link

Chr0nicT commented Apr 1, 2021

Same here but with a slighly other traceback:

    Error: Too many login attempts. This probably because something is wrong with the captcha process.
        at Login.login (/usr/app/src/login.ts:100:13)
        at Login.login (/usr/app/src/login.ts:136:22)
        at runMicrotasks (<anonymous>)
        at processTicksAndRejections (internal/process/task_queues.js:97:5)

Also having this issue, same traceback.

@tomvaneyck tomvaneyck reopened this Apr 1, 2021
@claabs
Copy link
Owner

claabs commented Apr 1, 2021

The error message doesn't matter, as the backend Epic captcha system is a black box. I just pushed the ideas I had (1d2f861), but it still doesn't work. I'll have to take another shot at it later.

@Ryonez
Copy link

Ryonez commented Apr 2, 2021

Your changes may have broken something. I updated yesterday and now I'm being spammed with captcha emails, getting a new one every time I complete one.

@Ryonez
Copy link

Ryonez commented Apr 2, 2021

It seems rolling back to the previous docker image now results in the error message above as well.

@BlueSialia
Copy link

If I wanted to tinker with it to try finding a solution, where would you recommend me to start looking at? @claabs

@claabs
Copy link
Owner

claabs commented Apr 2, 2021

The core principal of the whole project is to recreate what Epic's webapp does during login. So we just have to make sure the project does all the same API calls that the webapp does. The only thing I can think is that I could still be missing is a Talon call or payload I didn't catch.

@CorneliousJD
Copy link

CorneliousJD commented Apr 2, 2021

Came here to report same issue. I was able to get it to run once yesterday by generating a new cookie, but back to the same issues today. I sends me 3 capatacha emails, I run them, and then it fails with too many login attempts.

Also running via Docker for what it's worth.

If you need any other logs/info, please let me know and I can get them to you.

[2021-04-02 17:14:02.376 -0400] ERROR (46 on 2fc30c25fbb2): Too many login attempts. This probably because something is wrong with the captcha process.

Error: Too many login attempts. This probably because something is wrong with the captcha process.

at Login.login (/usr/app/src/login.ts:100:13)
at Login.login (/usr/app/src/login.ts:136:22)

@claabs
Copy link
Owner

claabs commented Apr 2, 2021

I think I fixed it? Once the build finishes, feel free to pull and try again.

Technical notes:

I noticed the xal in the decoded login captcha token was slightly different from the /init/execute xal. I put a breakpoint in the xal assembler function to confirm that two are created, and that the meaningful difference between the two was solve_token being true or false. This fix adds the ability to set solve_token, and generates a second one for the final captcha token assembly.

@claabs claabs changed the title Error: Too many login attempts. This probably because something is wrong with the captcha process. Error: Too many login attempts. (Secondary login fingerprint fix) Apr 2, 2021
@claabs
Copy link
Owner

claabs commented Apr 2, 2021

I was able to login and redeem on my server using the latest image. Make sure to pull the latest image to fix this issue.

@claabs claabs closed this as completed Apr 2, 2021
@tomvaneyck

This comment has been minimized.

@Joly0
Copy link

Joly0 commented Apr 2, 2021

I just updated the image but still getting the same error. I get 3 mails, every mail/captcha is successful, but after the third one i get the error 17

@claabs
Copy link
Owner

claabs commented Apr 3, 2021

@Joly0 Just to verify, you're on the latest version, run this command:

$ docker inspect -f '{{ .Created }}' charlocharlie/epicgames-freegames

It should output 2021-04-02T23:02:26.20963526Z

@tomvaneyck
Copy link
Author

I too still have the same problem, also on the latest version. I am using two accounts, if that matters.

@claabs claabs reopened this Apr 3, 2021
@claabs
Copy link
Owner

claabs commented Apr 3, 2021

I think I know what led to the false hope. My browser had gained enough hCaptcha trust to bypass the captcha game. Trying another browser to force the captcha game leads to the same issue.

This makes me think it's something to do with some hCaptcha proxy issues, but I'm already proxying everything...

@CorneliousJD
Copy link

CorneliousJD commented Apr 3, 2021

I think it's known at this point, but updated to latest image and also have the same issue, shoots 3 or 4 captacha emails at me and then says too many login attempts.

[2021-04-03 10:48:10.378 -0400] ERROR (38 on a1d9748f0baf): Too many login attempts. This probably because something is wrong with the captcha process.

Error: Too many login attempts. This probably because something is wrong with the captcha process.

at Login.login (/usr/app/src/login.ts:100:13)
at Login.login (/usr/app/src/login.ts:136:22)
at processTicksAndRejections (internal/process/task_queues.js:97:5)

@Joly0
Copy link

Joly0 commented Apr 3, 2021

Btw with the recent update the captcha does not even solve anymore, might be a bug on my end, but it does not solve itself anymore and i dont get a captcha to solve it

@claabs claabs changed the title Error: Too many login attempts. (Secondary login fingerprint fix) Error: Too many login attempts. (Captcha issues during login) Apr 3, 2021
@claabs
Copy link
Owner

claabs commented Jun 14, 2021

Just thought it was worth mentioned that, in my experience, if you log into Epic using one of the other options - such as "login with Steam", then Epic doesn't provide you with a captcha during the login process, and just allows you to login. Perhaps this is something that could be explored, as a potential workaround for this issue?

I've considered this, but ultimately, I'd like to just work on a robust solution that wouldn't get shut down by Epic in the future. All it would take for them to defeat it is to enable the feature toggle that requires captchas on purchase.

@joelang1699
Copy link

I seem to be having this issue too. Despute solving the captcha, It keeps ending emails asking me to solve more.

Screenshot 2021-08-01 175123

@claabs
Copy link
Owner

claabs commented Aug 2, 2021

I seem to be having this issue too. Despute solving the captcha, It keeps ending emails asking me to solve more.

@joelang1699 Follow the guide here to setup cookie import: https://github.com/claabs/epicgames-freegames-node#cookie-import

@joelang1699
Copy link

I seem to be having this issue too. Despute solving the captcha, It keeps ending emails asking me to solve more.

@joelang1699 Follow the guide here to setup cookie import: https://github.com/claabs/epicgames-freegames-node#cookie-import

Solved. Thanks mate!

Although I should add the cookies were added less than a month ago.

@claabs
Copy link
Owner

claabs commented Aug 2, 2021

I guess I should also give an update on the V4 progress. The big changes it will make are:

  • Use headless Chrome automation to login/solve captcha when it requires
    • I'm working on a puppeteer plugin that will essentially open a screencasted portal to the login page, so you'll just be interacting with the site remotely. I have a working prototype, just need to publish it and test it in a container
  • Finally merge the PR that adds more notification methods (Discord, Telegram, etc.)

@joelang1699
Copy link

joelang1699 commented Aug 2, 2021 via email

@articuno1au
Copy link

@claabs - Let us know when you need testers. Happy to build the container et all myself as required.

Thanks again for all the work :)

@joelang1699
Copy link

It's happening again. I just replaced the cookies last week. Captchas won't solve.

@LilTrublMakr
Copy link

Also happening for me. It doesn't matter how many times I solve the CAPTCHA correctly, tried the automatic method of obtaining the cookie, manual method, and have even cleared all of my cookies and tried fresh. All I keep getting is more 'solve this' emails.

Maybe implementing something like in #124 to the config would help?

Repository owner deleted a comment from jopais2 Aug 11, 2021
@claabs claabs added the v4 label Aug 30, 2021
@SoraKasvgano
Copy link

sorry for opening again

i get 3 times captcha emails. and then solve them all

the container log shows

    Error: Too many login attempts. This probably because something is wrong with the captcha process.,
[2021-09-18 09:21:51.198 +0800] ERROR (39 on 519d882189b2): Too many login attempts. This probably because something is wrong with the captcha process.,
        at Login.login (/usr/app/src/login.ts:106:13),
        at Login.login (/usr/app/src/login.ts:142:22),
        at processTicksAndRejections (internal/process/task_queues.js:97:5)

and this is my config.json

{
    "accounts": [
        // Multiple accounts can be configured here
        {
            "email": "x",
            "password": "x",
            "totp": "KBCTKM2YJFIESTSNIM2TIVKGJNITIU2WGNLEWU2TGRBEITaaaaaa"
        }
    ],
    "onlyWeekly": false,
    "runOnStartup": true,
    "intervalTime": 60,
    "cronSchedule": "0 12 * * *",
    "runOnce": false,
    "logLevel": "info",
    "baseUrl": "http://192.168.1.253:9799",
    "email": {
        "smtpHost": "smtp.exmail.qq.com",
        "smtpPort": 465,
        "emailSenderAddress": "x",
        "emailSenderName": "Epic Games Captchas",
        "emailRecipientAddress": "x",
        "secure": true,
        "auth": {
            "user": "x",
            "pass": "x",
        },
    }
}

@AllieQpzm
Copy link

@SoraKasvgano Not a wise idea to share your TOTP token, since now anyone can generate your 2fa tokens. I'd delete & setup your Epic 2fa again if I were you

@SoraKasvgano
Copy link

@SoraKasvgano Not a wise idea to share your TOTP token, since now anyone can generate your 2fa tokens. I'd delete & setup your Epic 2fa again if I were you

thanks for advice ....I had changed some keyword s in it before

@LilTrublMakr
Copy link

Yeah, I think you have to wait until V4 for this to get fixed. I get the same thing. Hopefully V4 comes soon!

@claabs
Copy link
Owner

claabs commented Sep 19, 2021

Since it's easy to lose in the above conversation, I'll post again.

You can work around the bug by importing the cookies manually.

@LilTrublMakr
Copy link

Since it's easy to lose in the above conversation, I'll post again.

You can work around the bug by importing the cookies manually.

I have tried doing using this method on multiple devices as well and I still get the 'too many login attempts' error.

@articuno1au
Copy link

The manual cookie import method definitely works. Stop and destroy the container, add the cookie file, create a new container.

Make sure you are following the cookie import method carefully, both in changing the domain you export the cookie from, and in where you place the file. I just re-checked on the latest version of the container, it's working as expected. Only downside to this method if you need to renew your cookie every month.

@jopais2
Copy link

jopais2 commented Sep 20, 2021

@LilTrublMakr can u give me ur discord or telegram

@LilTrublMakr
Copy link

The manual cookie import method definitely works. Stop and destroy the container, add the cookie file, create a new container.

Make sure you are following the cookie import method carefully, both in changing the domain you export the cookie from, and in where you place the file. I just re-checked on the latest version of the container, it's working as expected. Only downside to this method if you need to renew your cookie every month.

I have tried this. I have cleared cookies, cache, destroyed the container, tried a different folder for the container, redoing the config file, even using a different instance of Docker (on my Dietpi). Basically, I have tried everything I can think of short of trying a different computer to log in. I will try on my shiny new Lenovo Legion when it gets here today to make sure that it is the browser (that does weird things anyways).

@LilTrublMakr can u give me ur discord or telegram

I have Discord. What is the reason why you are asking?

@lorosario
Copy link

Make sure you are creating the cookie in the correct directory and check the log file for an entry saying "converting cookie" or something like that.

@articuno1au
Copy link

This is the message you should see in the logs if the cookie is correctly configured

> epicgames-freegames-node@3.0.0 start /usr/app
> node dist/src/index.js

[2021-09-29 20:16:40.454 +1000] INFO  (25 on Epicgames): Checking free games for email@domain.com
[2021-09-29 20:16:40.456 +1000] INFO  (25 on Epicgames): Converting ./config/email@domain.com-cookies.json cookie format
[2021-09-29 20:16:52.223 +1000] INFO  (25 on Epicgames): Successfully refreshed login
    user: "email@domain.com"

@claabs claabs mentioned this issue Oct 2, 2021
@claabs
Copy link
Owner

claabs commented Oct 2, 2021

@claabs claabs closed this as completed Oct 2, 2021
@claabs claabs unpinned this issue Oct 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v4
Projects
None yet
Development

No branches or pull requests