Giter VIP home page Giter VIP logo

Comments (8)

QIN2DIM avatar QIN2DIM commented on May 23, 2024 1

把对应账号下面的 /browser_context/ 文件夹删掉然后重开(run 新的不要 re-run)

from epic-awesome-gamer.

QIN2DIM avatar QIN2DIM commented on May 23, 2024

重新跑一次

from epic-awesome-gamer.

JavanShen avatar JavanShen commented on May 23, 2024

重新跑一次

还是有这个报错

from epic-awesome-gamer.

QIN2DIM avatar QIN2DIM commented on May 23, 2024

你看一下录像,是什么问题。然后发一下完整的log。都在仓库里了

from epic-awesome-gamer.

JavanShen avatar JavanShen commented on May 23, 2024
2023-10-05 14:07:29 | INFO    | __main__:from_epic:40 | run - {'stage': 'Initialization EpicPlayer'}
2023-10-05 14:07:32 | DEBUG    | hcaptcha_challenger.onnx.modelhub:request_resource:46 | Downloading resource - {'url': 'https://raw.githubusercontent.com/QIN2DIM/hcaptcha-challenger/main/src/objects.yaml', 'to': '/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/hcaptcha_challenger/onnx/models/objects.yaml'}
2023-10-05 14:07:32 | INFO    | hcaptcha_challenger.onnx.modelhub:flush_runtime_assets:137 | Reloading the local cache of Assets - {'assets_dir': '/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/hcaptcha_challenger/onnx/models/_assets'}
2023-10-05 14:07:32 | DEBUG    | hcaptcha_challenger.onnx.modelhub:flush_runtime_assets:151 | Pulling Assets index file - {'url': 'https://api.github.com/repos/QIN2DIM/hcaptcha-challenger/releases'}
2023-10-05 14:07:33 | INFO    | __main__:claim_epic_games:86 | Try to flush cookie - {'task': 'claim_epic_games'}
2023-10-05 14:07:33 | SUCCESS    | services.agents.epic_games:_login:129 | login - {'result': 'token has not expired'}
2023-10-05 14:07:42 | SUCCESS    | services.agents.epic_games:flush_token:150 | flush_token - {'path': PosixPath('/home/runner/work/epic-free/epic-free/epic/user_data_dir/epic-games@1985486089/ctx_cookie.json')}
2023-10-05 14:07:42 | WARNING    | services.agents.epic_games:get_order_history:301 | Failed to get order history, cookie may have expired - {}
2023-10-05 14:07:42 | DEBUG    | __main__:create_tasks:55 | Put task - {'title': 'Model Builder', 'url': 'https://store.epicgames.com/en-US/p/model-builder-f9b456'}
2023-10-05 14:07:42 | DEBUG    | __main__:create_tasks:55 | Put task - {'title': 'Soulstice', 'url': 'https://store.epicgames.com/en-US/p/soulstice'}
2023-10-05 14:07:42 | INFO    | services.agents.epic_games:claim_weekly_games:164 | claim_weekly_games - {'action': 'go to store', 'url': 'https://store.epicgames.com/en-US/p/model-builder-f9b456'}
2023-10-05 14:07:53 | ERROR    | __main__:run:126 | An error has been caught in function 'run', process 'MainProcess' (3642), thread 'MainThread' (140528200825920): - {}
Traceback (most recent call last):
  File "/home/runner/work/epic-free/epic-free/epic/src/claim.py", line 130, 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/epic-free/epic-free/epic/src/claim.py", line 126, in run
    await agent.stash()
  File "/home/runner/work/epic-free/epic-free/epic/src/claim.py", line 120, in stash
    await self.claim_epic_games(context)
  File "/home/runner/work/epic-free/epic-free/epic/src/claim.py", line 102, in claim_epic_games
    await epic.claim_weekly_games(page, self.promotions)
  File "/home/runner/work/epic-free/epic-free/epic/src/services/agents/epic_games.py", line 180, 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 20041, 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 455, 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 5000ms
waiting for locator("xpath=//aside//button[@data-testid='add-to-cart-cta-button']")
user_data_dir_epic-games@1985486089_record_2caf5191-e2bc-44bb-9098-45eeda0d1770.webm

from epic-awesome-gamer.

JavanShen avatar JavanShen commented on May 23, 2024

把对应账号下面的 /browser_context/ 文件夹删掉然后重开(run 新的不要 re-run)

不报错了

from epic-awesome-gamer.

QIN2DIM avatar QIN2DIM commented on May 23, 2024

啊这,success 了吗。我看一下录屏

from epic-awesome-gamer.

QIN2DIM avatar QIN2DIM commented on May 23, 2024

哦你领过了

from epic-awesome-gamer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.