Comments (8)
把对应账号下面的 /browser_context/ 文件夹删掉然后重开(run 新的不要 re-run)
from epic-awesome-gamer.
重新跑一次
from epic-awesome-gamer.
重新跑一次
还是有这个报错
from epic-awesome-gamer.
你看一下录像,是什么问题。然后发一下完整的log。都在仓库里了
from epic-awesome-gamer.
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.
把对应账号下面的 /browser_context/ 文件夹删掉然后重开(run 新的不要 re-run)
不报错了
from epic-awesome-gamer.
啊这,success 了吗。我看一下录屏
from epic-awesome-gamer.
哦你领过了
from epic-awesome-gamer.
Related Issues (20)
- 通过github action执行报错Locator expected to have text 'View In Cart'
- 超时无法执行 HOT 1
- perf(epic-games): Compatible with new EPIC Store UI
- 运行没报错,但是也没领到游戏
- 使用Actions运行偶尔会卡死把时间全用光 HOT 2
- [BUG] 购物车中有其他非免费游戏的情况下无法下订单 HOT 1
- 启动项目时报错 HOT 2
- github actions运行启动项目一直返回'stage': 'email_exists_prod',也没办法领取游戏,变量设置是正确的。 HOT 2
- 使用github actions启动,一直执行超时 - {'task': 'authorize', 'retry': 1} HOT 2
- 用github启动时 HOT 1
- 执行超时 HOT 13
- github_action部署运行报错 HOT 2
- docker模式运行错误
- hcaptcha-challenger验证问题
- APPRISE_TELEGRAM 格式问题 HOT 1
- 没有领取成功 HOT 2
- Captcha Issue HOT 1
- 无法通过人机验证 HOT 2
- 运行时错误 HOT 1
- git上运行报错 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from epic-awesome-gamer.