Skip to content

prime-gaming.js times out while trying to claim non-existent in-game content #451

@IKA3RUS

Description

@IKA3RUS

Description

When running node prime-gaming.js, the script times out while trying to claim non-existent in-game content from Prime Gaming.

Steps to Reproduce

  • Run node prime-gaming.js while no in-game content offer is available on Prime Gaming.
  • The script logs in successfully and checks for unclaimed games.
  • No free games are found, but the script attempts to claim in-game content.
  • The process times out after 60000ms while waiting for button[data-type="InGameLoot"]. Notifications are also sent about this timeout.

Expected Behavior

The script should correctly detect that no in-game content is available without timing out.

Logs

2025-03-22 07:43:20.462 started checking prime-gaming  
Signed in as Abhishek  
waitUntilStable 3908  
waitUntilStable 3967  
waitUntilStable 4002  
waitUntilStable 4002  
Number of already claimed games (total): 36  
Number of free unclaimed games (Prime Gaming): 0  
Number of free unclaimed games (external stores): 0  
Trying to claim in-game content...  
--- Exception:  
page.click: Timeout 60000ms exceeded.  
Call log:  
  - waiting for locator('button[data-type="InGameLoot"]')  

    at /fgc/prime-gaming.js:357:16 {  
  name: 'TimeoutError'  
}

Attachments

📎 Screenshot showing the home page of Prime Gaming at which the script timesout.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions