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

prime-gaming failed: elementHandle.screenshot: Element is not attached to the DOM #357

Closed
SnakeEater96 opened this issue Aug 2, 2024 · 9 comments

Comments

@SnakeEater96
Copy link

2024-08-02T20:00:57.600344823Z Number of already claimed games (total): 17
2024-08-02T20:00:57.757828257Z Number of free unclaimed games (Prime Gaming): 3
2024-08-02T20:00:58.479580322Z Current free game: Tomb Raider: The Last Revelation + Chronicles
2024-08-02T20:00:59.831036645Z --- Exception:
2024-08-02T20:00:59.836251179Z elementHandle.screenshot: Element is not attached to the DOM
2024-08-02T20:00:59.836276324Z Call log:
2024-08-02T20:00:59.836280894Z - taking element screenshot
2024-08-02T20:00:59.836285127Z - waiting for fonts to load...
2024-08-02T20:00:59.836289035Z - fonts loaded
2024-08-02T20:00:59.836312569Z - attempting scroll into view action
2024-08-02T20:00:59.836316557Z - waiting for element to be stable
2024-08-02T20:00:59.836320381Z
2024-08-02T20:00:59.836324190Z at /fgc/prime-gaming.js:159:16 {
2024-08-02T20:00:59.836328139Z name: 'Error'
2024-08-02T20:00:59.836332446Z }
2024-08-02T20:01:02.712788956Z 2024-08-02 20:01:02.711 started checking gog
2024-08-02T20:01:18.064957436Z Signed in as SnakeEater96
2024-08-02T20:01:18.182201173Z Currently no free giveaway!
2024-08-02T20:01:19.716583270Z sleeping

@voruti
Copy link

voruti commented Aug 3, 2024

I had this problem as well over the last few days, but (at least for me) seems to be fixed now.

@SnakeEater96
Copy link
Author

problem still exists

@SnakeEater96
Copy link
Author

2024-08-03T22:31:52.494296963Z Number of free unclaimed games (Prime Gaming): 3
2024-08-03T22:31:53.164747408Z Current free game: Tomb Raider: The Last Revelation + Chronicles
2024-08-03T22:31:53.968568449Z --- Exception:
2024-08-03T22:31:53.989964549Z elementHandle.screenshot: Element is not attached to the DOM
2024-08-03T22:31:53.990002711Z Call log:
2024-08-03T22:31:53.990008180Z - taking element screenshot
2024-08-03T22:31:53.990011853Z - waiting for fonts to load...
2024-08-03T22:31:53.990015639Z - fonts loaded
2024-08-03T22:31:53.990019098Z - attempting scroll into view action
2024-08-03T22:31:53.990022549Z - waiting for element to be stable
2024-08-03T22:31:53.990026332Z
2024-08-03T22:31:53.990029773Z at /fgc/prime-gaming.js:159:16 {
2024-08-03T22:31:53.990033268Z name: 'Error'
2024-08-03T22:31:53.990036735Z }
2024-08-03T22:31:56.365407507Z 2024-08-03 22:31:56.363 started checking gog

@Stoony1
Copy link

Stoony1 commented Aug 5, 2024

same here epic not work yet.

@SnakeEater96
Copy link
Author

SnakeEater96 commented Aug 5, 2024

same here epic not work yet.

Epic hasn't worked for a while, but it's known and there's a long post about it #183

@SnakeEater96
Copy link
Author

Prime Gaming wasn't running smoothly for me

2024-08-05T21:05:16.790446932Z waitUntilStable 15
2024-08-05T21:05:21.822619521Z waitUntilStable 16
2024-08-05T21:05:26.849537978Z waitUntilStable 16
2024-08-05T21:05:26.870887436Z Number of already claimed games (total): 16
2024-08-05T21:05:26.901676228Z Number of free unclaimed games (Prime Gaming): 0
2024-08-05T21:05:26.902041561Z Number of free unclaimed games (external stores): 0
2024-08-05T21:05:31.107711248Z Trying to claim in-game content...
2024-08-05T21:05:31.956500613Z Loading all DLCs on page...waitUntilStable 1
2024-08-05T21:05:31.976291386Z
2024-08-05T21:05:31.976333265Z Number of already claimed DLC: 1
2024-08-05T21:05:31.990337104Z Number of unclaimed DLC: 0
2024-08-05T21:05:31.991441222Z DLC: Unlinked accounts: {}
2024-08-05T21:05:32.069268947Z node:internal/process/promises:391
2024-08-05T21:05:32.069328854Z triggerUncaughtException(err, true /* fromPromise */);
2024-08-05T21:05:32.069334339Z ^
2024-08-05T21:05:32.069338126Z
2024-08-05T21:05:32.069341893Z page.waitForTimeout: Target page, context or browser has been closed
2024-08-05T21:05:32.069346177Z at /fgc/prime-gaming.js:113:16
2024-08-05T21:05:32.069349675Z at async waitUntilStable (/fgc/prime-gaming.js:107:7)
2024-08-05T21:05:32.069427696Z
2024-08-05T21:05:32.069452048Z Node.js v20.16.0

@OisinHick
Copy link

I seem to be having a weird prime gaming issue too. 0 errors, no crashes nothing like that but when it checks for free games I have unclaimed it says the there is 0 which arent claimed but this months freebies are unclaimed on my account. no errors of any kind however

@vogler
Copy link
Owner

vogler commented Aug 29, 2024

@SnakeEater96 Do you still have the screenshot issue?

vogler added a commit that referenced this issue Aug 29, 2024
@vogler
Copy link
Owner

vogler commented Aug 29, 2024

@ironic833 Yea, loading all games has become unreliable since it skipped right to the end of the page which also skipped loading for some games in-between. Now it scrolls more like a human towards the end with some waits in-between. A bit hacky, but seems to work reliably.

@vogler vogler closed this as completed Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants