GithubHelp home page GithubHelp logo

timeout epic about free-games-claimer HOT 9 CLOSED

vogler avatar vogler commented on July 16, 2024
timeout epic

from free-games-claimer.

Comments (9)

vogler avatar vogler commented on July 16, 2024

I have the same issue. Seems to be a race. When stepping through with PWDEBUG=1 node epic-games there is no problem.
Strange thing is that it finds the two elements to click on but then the click somehow makes it navigate to a 404 page.

from free-games-claimer.

vogler avatar vogler commented on July 16, 2024

Should be fixed for now, but not a great solution.
As the commit says, should wait for some element/attribute/event instead.
Maybe there's JS that has to attach event listeners first.

from free-games-claimer.

vogler avatar vogler commented on July 16, 2024

Apparently it's not time-related after all. Even with networkidle and waitForTimeout(2000) it sometimes (but rarely) got into this situation.

from free-games-claimer.

viperdriver2000 avatar viperdriver2000 commented on July 16, 2024

thanks for your feedback.
im on commit cbe789b (HEAD -> main, origin/main, origin/HEAD)

but i get the same error.

userAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.83 Safari/537.36
Signed in.
Number of free games: 2
locator.innerText: Timeout 20000ms exceeded.
=========================== logs ===========================
waiting for selector "//button[@data-testid="purchase-cta-button"][not(contains(.,"Loading"))] >> nth=0"
============================================================
    at file:///fgc/epic-games.js:71:124 {
  name: 'TimeoutError'
}

from free-games-claimer.

viperdriver2000 avatar viperdriver2000 commented on July 16, 2024

thanks for your change.
im on commit 1dc3b3d (HEAD -> main, origin/main, origin/HEAD)

get a new error:

userAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.83 Safari/537.36
Signed in.
Number of free games: 2
Current free game: ARK: Survival Evolved
Already in library! Nothing to claim.
Current free game: Gloomhaven
Not in library yet! Click GET.
page.waitForSelector: Timeout 20000ms exceeded.
=========================== logs ===========================
waiting for selector "text=Thank you for buying" to be visible
============================================================
    at file:///fgc/epic-games.js:115:20 {
  name: 'TimeoutError'
}
Saved a screenshot of hcaptcha challenge to /fgc/data/screenshots/epic-games/2022-09-23 06.17.11.360.png
Got hcaptcha challenge. To avoid it, get a link from https://www.hcaptcha.com/accessibility

from free-games-claimer.

vogler avatar vogler commented on July 16, 2024

Did you check if you got a hcaptcha challenge?
I think they got more aggressive. While testing a couple of times in a row it also showed me a captcha and I had to get a fresh IP to avoid it.

from free-games-claimer.

viperdriver2000 avatar viperdriver2000 commented on July 16, 2024

okay i see there was a hcaptcha challenge.
okay i will check it next week again ^^

from free-games-claimer.

vogler avatar vogler commented on July 16, 2024

Ok, with 69d771b I just had the case where the printed urlSlug was correct, but the click resulted in a 404. I'll change the code to just visit those links then instead of clicking.

from free-games-claimer.

vogler avatar vogler commented on July 16, 2024

Should be fixed by edb90fe. Please reopen if you still encounter the issue after updating.

from free-games-claimer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.