Revadike / epicgames-freebies-claimer

Claim available free game promotions from the Epic Games Store.
MIT License
2.23k stars 361 forks source link

Timeout error / Invalid login selector #66

Closed JoshuaVandaele closed 3 years ago

JoshuaVandaele commented 3 years ago

Here's the error:

PS C:\Users\folfy\Desktop\gamefarm\epicgames-freebies-claimer-1.4.1> npm start

> epicgames-freebies-claimer@1.4.1 start C:\Users\folfy\Desktop\gamefarm\epicgames-freebies-claimer-1.4.1
> node claimer.js

 2020-11-06 | 13:03:53.059 | WARN  | Failed to login as folfyblu@gmail.com, please attempt manually.
 2020-11-06 | 13:04:32.302 | ERROR | TimeoutError: waiting for selector "#login:not(:disabled)" failed: timeout 30000ms exceeded
    at new WaitTask (C:\Users\folfy\Desktop\gamefarm\epicgames-freebies-claimer-1.4.1\node_modules\puppeteer\lib\DOMWorld.js:549:28)
    at DOMWorld._waitForSelectorOrXPath (C:\Users\folfy\Desktop\gamefarm\epicgames-freebies-claimer-1.4.1\node_modules\puppeteer\lib\DOMWorld.js:478:22)
    at DOMWorld.waitForSelector (C:\Users\folfy\Desktop\gamefarm\epicgames-freebies-claimer-1.4.1\node_modules\puppeteer\lib\DOMWorld.js:432:17)
    at Frame.waitForSelector (C:\Users\folfy\Desktop\gamefarm\epicgames-freebies-claimer-1.4.1\node_modules\puppeteer\lib\FrameManager.js:627:47)
    at Frame.<anonymous> (C:\Users\folfy\Desktop\gamefarm\epicgames-freebies-claimer-1.4.1\node_modules\puppeteer\lib\helper.js:112:23)
    at Page.waitForSelector (C:\Users\folfy\Desktop\gamefarm\epicgames-freebies-claimer-1.4.1\node_modules\puppeteer\lib\Page.js:1122:29)
    at Function.init (C:\Users\folfy\Desktop\gamefarm\epicgames-freebies-claimer-1.4.1\node_modules\epicgames-client-login-adapter\index.js:107:38)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async C:\Users\folfy\Desktop\gamefarm\epicgames-freebies-claimer-1.4.1\claimer.js:79:28
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! epicgames-freebies-claimer@1.4.1 start: `node claimer.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the epicgames-freebies-claimer@1.4.1 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\folfy\AppData\Roaming\npm-cache\_logs\2020-11-06T12_04_32_502Z-debug.log
Huzukawaiii commented 3 years ago

same

c4ffein commented 3 years ago

Any updates @Revadike ? That script would save me some time but it seems broken as is, at least when connecting from a new device, and I want to know if this repo is still maintained or if I should try to fix it myself.

Revadike commented 3 years ago

I haven't looked at it for a while

GuFFy12 commented 3 years ago

same

dodgythoughts commented 3 years ago

Edit epicgames-freebies-claimer/node_modules/puppeteer/lib/TimeoutSettings.js change const DEFAULT_TIMEOUT = 30000;

30000 = 30 seconds, Epic games login screen gives you the spinning wheel for longer than this. I changed mine to 120 seconds.

JoshuaVandaele commented 3 years ago

Changing the timeout doesn't change much, I can now log in into the appearing tab, but it still crashes

Revadike commented 3 years ago

This should be fixed now