srhinos / primelooter

A small python bot which automatically claims amazon prime gaming loot :D
GNU General Public License v3.0
52 stars 3 forks source link

[BUG] Rare Issue With External Claim #10

Closed srhinos closed 2 years ago

srhinos commented 2 years ago

Describe the bug

Theres currently a bug that will occassionally bubble up regarding claiming a External claim. I haven't looked into this too deeply because it triggered off a claim I didn't care for but looking for a fix from someone who does!

💬Additional context Stack trace:

Timeout 30000.0ms exceeded.
  File "primelooter.py", line 148, in claim_external
    tab.wait_for_load_state("networkidle")
  File "/home/rhino/.local/lib/python3.8/site-packages/playwright/sync_api/_generated.py", line 7418, in wait_for_load_state
    self._sync(
  File "/home/rhino/.local/lib/python3.8/site-packages/playwright/_impl/_sync_base.py", line 111, in _sync
    return task.result()
  File "/home/rhino/.local/lib/python3.8/site-packages/playwright/_impl/_page.py", line 503, in wait_for_load_state
    return await self._main_frame.wait_for_load_state(**locals_to_params(locals()))
  File "/home/rhino/.local/lib/python3.8/site-packages/playwright/_impl/_frame.py", line 217, in wait_for_load_state
    return await self._wait_for_load_state_impl(state, timeout)
  File "/home/rhino/.local/lib/python3.8/site-packages/playwright/_impl/_frame.py", line 241, in _wait_for_load_state_impl
    await wait_helper.result()
2022-03-08 19:52:10 [ERROR] An error occured (Mythical Games Inc./Blankos Block Party)! Did they make some changes to the website? Please report @github if this happens multiple times.
srhinos commented 2 years ago

I think I fixed this with release 1.3.2g but I guess we'll see?