Skip to content

Prime gaming throwing an exception while trying to login #569

@xeropresence

Description

@xeropresence

2026-01-11 01:26:50.115 started checking prime-gaming
Not signed in anymore.
Login timeout is 180 seconds!
Using email and password from environment.
--- Exception:
locator.innerText: Error: Can't query n-th element
    at Frame._customFindElementsByParsed (/fgc/node_modules/patchright-core/lib/server/frames.js:1667:17)
    at async /fgc/node_modules/patchright-core/lib/server/frames.js:1057:34
    at async Frame.retryWithProgressAndTimeouts (/fgc/node_modules/patchright-core/lib/server/frames.js:1003:24)
    at async ProgressController.run (/fgc/node_modules/patchright-core/lib/server/progress.js:80:22)
    at async FrameDispatcher.innerText (/fgc/node_modules/patchright-core/lib/server/dispatchers/frameDispatcher.js:148:21)
    at async LongStandingScope._race (/fgc/node_modules/patchright-core/lib/utils/isomorphic/manualPromise.js:95:14)
    at async FrameDispatcher._handleCommand (/fgc/node_modules/patchright-core/lib/server/dispatchers/dispatcher.js:96:14)
    at async DispatcherConnection.dispatch (/fgc/node_modules/patchright-core/lib/server/dispatchers/dispatcher.js:307:22)
Call log:
  2 × waiting for locator('[data-a-target="user-dropdown-first-name-text"]').first()

    at /fgc/prime-gaming.js:91:88
node:internal/process/promises:394
    triggerUncaughtException(err, true /* fromPromise */);
    ^

page.waitForURL: Target page, context or browser has been closed
=========================== logs ===========================
waiting for navigation to "**/ap/signin**" until "load"
  navigated to "https://luna.amazon.com/claims/home?signedIn=true"
============================================================
    at /fgc/prime-gaming.js:63:12

Node.js v22.21.0


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