QIN2DIM / epic-awesome-gamer

🍷 Gracefully claim weekly free games and monthly content from Epic Store.
https://echosec.notion.site/Epic-7c74f1e29117420dbac5551e4b031f82?pvs=4
GNU General Public License v3.0
886 stars 364 forks source link

请问github actions运行报错怎么解决 #222

Closed cooliceycold closed 10 months ago

cooliceycold commented 10 months ago
2023-10-20 15:41:40 | INFO - run - {'role': 'EpicPlayer', 'headless': True}

Installing models/objects.yaml:   0%|          | 0.00/2.71k [00:00<?, ?B/s]
Installing models/objects.yaml: 100%|██████████| 2.71k/2.71k [00:00<00:00, 3.76MB/s]
2023-10-20 15:41:44 | INFO - Try to flush cookie - {'task': 'claim_epic_games'}
2023-10-20 15:41:48 | INFO - login-with-email - {'url': 'https://www.epicgames.com/id/login?lang=en-US&noHostRedirect=true&redirectUrl=https://store.epicgames.com/en-US/free-games'}
2023-10-20 15:41:53 | DEBUG - Attack challenge - {'stage': 'email_exists_prod'}
2023-10-20 15:41:53 | DEBUG - match model - {'resnet': 'natural_landscape2313.onnx', 'prompt': 'Please click each image containing natural landscape'}

Installing models/natural_landscape2313.onnx:   0%|          | 0.00/296k [00:00<?, ?B/s]
Installing models/natural_landscape2313.onnx: 100%|██████████| 296k/296k [00:00<00:00, 58.2MB/s]
2023-10-20 15:41:58 | DEBUG - Parse result - {'stage': 'email_exists_prod', 'result': 'success'}
2023-10-20 15:42:04 | DEBUG - Attack challenge - {'stage': 'login_prod'}

Installing models/appears_only_once_2309_yolov8s-seg.onnx:   0%|          | 0.00/45.1M [00:00<?, ?B/s]
Installing models/appears_only_once_2309_yolov8s-seg.onnx:  32%|███▏      | 14.4M/45.1M [00:00<00:00, 151MB/s]
Installing models/appears_only_once_2309_yolov8s-seg.onnx:  70%|██████▉   | 31.6M/45.1M [00:00<00:00, 168MB/s]
Installing models/appears_only_once_2309_yolov8s-seg.onnx: 100%|██████████| 45.1M/45.1M [00:00<00:00, 173MB/s]
2023-10-20 15:42:07 | DEBUG - select model - {'yolo': 'appears_only_once_2309_yolov8s-seg.onnx', 'trident': 'find_unique_object', 'ash': 'please click on the object that appears only once default'}
2023-10-20 15:42:10 | DEBUG - select model - {'yolo': 'appears_only_once_2309_yolov8s-seg.onnx', 'trident': 'find_unique_object', 'ash': 'please click on the object that appears only once default'}
2023-10-20 15:42:11 | DEBUG - Parse result - {'stage': 'login_prod', 'result': 'retry'}

Installing models/head_of_the_animal_bear_2309_yolov8n.onnx:   0%|          | 0.00/11.7M [00:00<?, ?B/s]
Installing models/head_of_the_animal_bear_2309_yolov8n.onnx: 100%|██████████| 11.7M/11.7M [00:00<00:00, 166MB/s]
2023-10-20 15:42:16 | DEBUG - catch model - {'yolo': 'head_of_the_animal_bear_2309_yolov8n.onnx', 'ash': 'please click on the head of the animal default'}

Installing models/head_of_the_animal_2310_yolov8s.onnx:   0%|          | 0.00/42.6M [00:00<?, ?B/s]
Installing models/head_of_the_animal_2310_yolov8s.onnx:  41%|████      | 17.4M/42.6M [00:00<00:00, [18](https://github.com/cooliceycold/egreat/actions/runs/6584829130/job/17890089513#step:6:19)2MB/s]
Installing models/head_of_the_animal_2310_yolov8s.onnx:  85%|████████▍ | 36.1M/42.6M [00:00<00:00, [19](https://github.com/cooliceycold/egreat/actions/runs/6584829130/job/17890089513#step:6:20)0MB/s]
Installing models/head_of_the_animal_2310_yolov8s.onnx: 100%|██████████| 42.6M/42.6M [00:00<00:00, 191MB/s]
[20](https://github.com/cooliceycold/egreat/actions/runs/6584829130/job/17890089513#step:6:21)23-10-20 15:42:19 | DEBUG - catch model - {'yolo': 'head_of_the_animal_2310_yolov8s.onnx', 'ash': 'please click on the head of the animal default'}
2023-10-20 15:42:22 | DEBUG - Parse result - {'stage': 'login_prod', 'result': 'success'}
2023-10-20 15:42:52 | SUCCESS - login - {'result': 'Successfully refreshed tokens'}
2023-10-20 15:42:59 | SUCCESS - flush_token - {'path': PosixPath('/home/runner/work/egreat/egreat/epic/user_data_dir/epic-games@dcoldicey/ctx_cookie.json')}
2023-10-20 15:42:59 | WARNING - Failed to get order history, cookie may have expired - {}
2023-10-20 15:42:59 | DEBUG - Put task - {'title': 'The Evil Within', 'url': 'https://store.epicgames.com/en-US/p/the-evil-within'}
2023-10-20 15:42:59 | DEBUG - Put task - {'title': 'Eternal Threads', 'url': 'https://store.epicgames.com/en-US/p/eternal-threads-197169'}
2023-10-20 15:42:59 | INFO - claim_weekly_games - {'action': 'go to store', 'url': 'https://store.epicgames.com/en-US/p/the-evil-within'}
2023-10-20 15:43:11 | ERROR - An error has been caught in function 'run', process 'MainProcess' (3538), thread 'MainThread' (139904118299712): - {}
Traceback (most recent call last):
  File "/home/runner/work/egreat/egreat/epic/src/claim.py", line 148, in <module>
    asyncio.run(run())
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/asyncio/base_events.py", line 636, in run_until_complete
    self.run_forever()
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/asyncio/base_events.py", line 603, in run_forever
    self._run_once()
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/asyncio/base_events.py", line 1909, in _run_once
    handle._run()
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/asyncio/events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
> File "/home/runner/work/egreat/egreat/epic/src/claim.py", line 144, in run
    await agent.stash()
  File "/home/runner/work/egreat/egreat/epic/src/claim.py", line 137, in stash
    await self.claim_epic_games(context)
  File "/home/runner/work/egreat/egreat/epic/src/claim.py", line 116, in claim_epic_games
    await epic.claim_weekly_games(page, single_promotions)
  File "/home/runner/work/egreat/egreat/epic/src/epic_games/agent.py", line [24](https://github.com/cooliceycold/egreat/actions/runs/6584829130/job/17890089513#step:6:25)8, in claim_weekly_games
    await expect(cta_btn).to_have_text("View In Cart")
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/playwright/async_api/_generated.py", line 20080, in to_have_text
    await self._impl_obj.to_have_text(
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/playwright/_impl/_assertions.py", line [45](https://github.com/cooliceycold/egreat/actions/runs/6584829130/job/17890089513#step:6:46)5, in to_have_text
    await self._expect_impl(
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/playwright/_impl/_assertions.py", line 70, in _expect_impl
    raise AssertionError(f"{out_message}\nActual value: {actual} {log}")
AssertionError: Locator expected to have text 'View In Cart'
Actual value: None 
Call log:
LocatorAssertions.to_have_text with timeout [50](https://github.com/cooliceycold/egreat/actions/runs/6584829130/job/17890089513#step:6:51)00ms
waiting for locator("xpath=//aside//button[@data-testid='add-to-cart-cta-button']")
QIN2DIM commented 10 months ago

咋关了 issue 了,重开好了吗