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
883 stars 361 forks source link

fix(bug): inner hook-challenge #73

Closed A13437858 closed 2 years ago

A13437858 commented 2 years ago
2022-05-02 12:42:06 | DEBUG - >> ACTIVATE [__Context__] 🎮 激活挑战者上下文
2022-05-02 12:42:07 | SUCCESS - >> MATCH [__Context__] 🎮 启动挑战者上下文 - ctx_session=False
2022-05-02 12:42:11 | DEBUG - >> MATCH [CookieManager] 实体信息注入完毕
2022-05-02 12:42:11 | DEBUG - >> ARMOR [ArmorUtils] 正在检测隐藏在登录界面的人机挑战...
2022-05-02 12:42:14 | DEBUG - >> Challenge [ArmorCaptcha] 获取挑战标签 - label=「motorbike」
2022-05-02 12:42:14 | DEBUG - >> Challenge [ArmorCaptcha] 开始挑战
2022-05-02 12:42:15 | DEBUG - >> Challenge [ArmorCaptcha] 提交挑战 yolov5n6(onnx)_model: 0.55s
2022-05-02 12:42:17 | DEBUG - >> Challenge [ArmorCaptcha] 获取响应 - desc=继续挑战(continue)
2022-05-02 12:42:18 | DEBUG - >> Challenge [ArmorCaptcha] 获取挑战标签 - label=「motorbike」
2022-05-02 12:42:19 | DEBUG - >> Challenge [ArmorCaptcha] 开始挑战
2022-05-02 12:42:19 | DEBUG - >> Challenge [ArmorCaptcha] 提交挑战 yolov5n6(onnx)_model: 0.4s
2022-05-02 12:42:26 | DEBUG - >> Challenge [ArmorCaptcha] 获取响应 - desc=退火成功(success)
2022-05-02 12:42:27 | DEBUG - >> LOAD [CookieManager] Load context cookie.
2022-05-02 12:42:28 | DEBUG - >> STARTUP [GameClaimer] 🍜 发现周免游戏 - game=『《Just Die Already》』
2022-05-02 12:42:28 | DEBUG - >> STARTUP [GameClaimer] 🍜 发现周免游戏 - game=『Paradigm』
2022-05-02 12:42:36 | SUCCESS - >> GET [GameClaimer] 🛒 添加至购物车 优惠截止于2022/5/5 10:00 - game=『《Just Die Already》』
2022-05-02 12:42:43 | SUCCESS - >> GET [GameClaimer] 🛒 添加至购物车 优惠截止于2022/5/5 10:00 - game=『Paradigm』
2022-05-02 12:42:43 | DEBUG - [🛵] 判断购物车状态
2022-05-02 12:42:44 | DEBUG - [🛵] 重载身份令牌
2022-05-02 12:42:48 | DEBUG - [🛵] 激活游戏订单
2022-05-02 12:42:51 | DEBUG - [🛵] 处理游戏订单...
2022-05-02 12:42:51 | DEBUG - [🌀] 切换至内联订单框架
2022-05-02 12:42:51 | DEBUG - [⚔] 激活人机挑战...
2022-05-02 12:42:57 | DEBUG - [⚔] 捕获隐藏在订单中的人机挑战...
2022-05-02 12:42:58 | DEBUG - >> Challenge [ArmorCaptcha] 获取挑战标签 - label=「train」
2022-05-02 12:42:58 | DEBUG - >> Challenge [ArmorCaptcha] 开始挑战
2022-05-02 12:42:59 | DEBUG - >> Challenge [ArmorCaptcha] 提交挑战 yolov5n6(onnx)_model: 0.41s
2022-05-02 12:43:01 | DEBUG - >> Challenge [ArmorCaptcha] 获取响应 - desc=继续挑战(continue)
2022-05-02 12:43:06 | ERROR - Message: 
Stacktrace:
#0 0x5651b7ec3ad3 <unknown>
#1 0x5651b7c23568 <unknown>
#2 0x5651b7c59c46 <unknown>
#3 0x5651b7c59e01 <unknown>
#4 0x5651b7c8ca64 <unknown>
#5 0x5651b7c7761d <unknown>
#6 0x5651b7c8a824 <unknown>
#7 0x5651b7c774e3 <unknown>
#8 0x5651b7c4cd1a <unknown>
#9 0x5651b7c4de75 <unknown>
#10 0x5651b7ef1efd <unknown>
#11 0x5651b7f0b19b <unknown>
#12 0x5651b7ef3c65 <unknown>
#13 0x5651b7f0bec8 <unknown>
#14 0x5651b7ee7360 <unknown>
#15 0x5651b7f27a68 <unknown>
#[16](https://github.com/A13437858/771980/runs/6257326616?check_suite_focus=true#step:6:16) 0x5651b7f27be8 <unknown>
#17 0x5651b7f417fd <unknown>
#18 0x7f7118810609 <unknown>

Traceback (most recent call last):
  File "/home/runner/work/771980/771980/epic/src/main.py", line 11, in <module>
    Fire(Scaffold)
  File "/opt/hostedtoolcache/Python/3.10.4/x64/lib/python3.10/site-packages/fire/core.py", line 141, in Fire
    component_trace = _Fire(component, args, parsed_flag_args, context, name)
  File "/opt/hostedtoolcache/Python/3.10.4/x64/lib/python3.10/site-packages/fire/core.py", line 466, in _Fire
    component, remaining_args = _CallAndUpdateTrace(
  File "/opt/hostedtoolcache/Python/3.10.4/x64/lib/python3.10/site-packages/fire/core.py", line 681, in _CallAndUpdateTrace
    component = fn(*varargs, **kwargs)
  File "/home/runner/work/771980/771980/epic/src/services/scaffold.py", line 143, in claim
    claimer.run(silence=silence, log_ignore=ignore, unreal=unreal)
  File "/home/runner/work/771980/771980/epic/src/apis/scaffold/claimer.py", line 25, in run
    ClaimerScheduler(silence=silence, unreal=unreal).job_loop_claim(log_ignore)
  File "/home/runner/work/771980/771980/epic/src/services/deploy.py", line 169, in job_loop_claim
    claimer.just_do_it()
  File "/home/runner/work/771980/771980/epic/src/services/deploy.py", line 376, in just_do_it
    self.inline_bricklayer()
  File "/home/runner/work/771980/771980/epic/src/services/deploy.py", line 450, in inline_bricklayer
    self.bricklayer.claim_booster(self._ctx_cookies, self._ctx_session)
  File "/home/runner/work/771980/771980/epic/src/services/bricklayer/game.py", line 280, in claim_booster
    return self.empty_shopping_payment(ctx_cookies=ctx_cookies, ctx_session=ctx_session)
  File "/home/runner/work/771980/771980/epic/src/services/bricklayer/game.py", line 215, in empty_shopping_payment
    self.cart_handle_payment(ctx_session)
  File "/home/runner/work/771980/771980/epic/src/services/bricklayer/core.py", line 1038, in cart_handle_payment
    self._duel_with_challenge(ctx)
  File "/home/runner/work/771980/771980/epic/src/services/bricklayer/core.py", line 858, in _duel_with_challenge
    return self.armor.anti_hcaptcha(ctx, dir_model=DIR_MODEL, window="free")
> File "/home/runner/work/771980/771980/epic/src/services/bricklayer/core.py", line 370, in anti_hcaptcha
    self.switch_challenge_iframe(ctx)
  File "/home/runner/work/771980/771980/epic/src/services/bricklayer/core.py", line 177, in switch_challenge_iframe
    WebDriverWait(ctx, 5).until(
  File "/opt/hostedtoolcache/Python/3.10.4/x64/lib/python3.10/site-packages/selenium/webdriver/support/wait.py", line 89, in until
    raise TimeoutException(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message: 
Stacktrace:
#0 0x5651b7ec3ad3 <unknown>
#1 0x5651b7c23568 <unknown>
#2 0x5651b7c59c46 <unknown>
#3 0x5651b7c59e01 <unknown>
#4 0x5651b7c8ca64 <unknown>
#5 0x5651b7c7761d <unknown>
#6 0x5651b7c8a824 <unknown>
#7 0x5651b7c774e3 <unknown>
#8 0x5651b7c4cd1a <unknown>
#9 0x5651b7c4de75 <unknown>
#10 0x5651b7ef1efd <unknown>
#11 0x5651b7f0b19b <unknown>
#12 0x5651b7ef3c65 <unknown>
#13 0x5651b7f0bec8 <unknown>
#14 0x5651b7ee7360 <unknown>
#15 0x5651b7f27a68 <unknown>
#16 0x5651b7f27be8 <unknown>
#17 0x5651b7f417fd <unknown>
#18 0x7f7118810609 <unknown>

2022-05-02 12:43:06 | DEBUG - [🌀] 弹出内联订单框架...
2022-05-02 12:43:07 | DEBUG - [🛵] 判断购物车状态
2022-05-02 12:43:08 | DEBUG - [🛵] 重载身份令牌
2022-05-02 12:43:11 | DEBUG - [🛵] 激活游戏订单
2022-05-02 12:43:15 | DEBUG - [🛵] 处理游戏订单...
2022-05-02 12:43:15 | DEBUG - [🌀] 切换至内联订单框架
2022-05-02 12:43:15 | DEBUG - [⚔] 激活人机挑战...
2022-05-02 12:43:20 | DEBUG - [⚔] 捕获隐藏在订单中的人机挑战...
2022-05-02 12:43:21 | DEBUG - >> Challenge [ArmorCaptcha] 获取挑战标签 - label=「bus」
2022-05-02 12:43:21 | DEBUG - >> Challenge [ArmorCaptcha] 开始挑战
2022-05-02 12:43:22 | DEBUG - >> Challenge [ArmorCaptcha] 提交挑战 yolov5n6(onnx)_model: 0.4s
2022-05-02 12:43:24 | DEBUG - >> Challenge [ArmorCaptcha] 获取响应 - desc=继续挑战(continue)
2022-05-02 12:43:29 | ERROR - Message: 
Stacktrace:
#0 0x5651b7ec3ad3 <unknown>
#1 0x5651b7c23568 <unknown>
#2 0x5651b7c59c46 <unknown>
#3 0x5651b7c59e01 <unknown>
#4 0x5651b7c8ca64 <unknown>
#5 0x5651b7c7761d <unknown>
#6 0x5651b7c8a824 <unknown>
#7 0x5651b7c774e3 <unknown>
#8 0x5651b7c4cd1a <unknown>
#9 0x5651b7c4de75 <unknown>
#10 0x5651b7ef1efd <unknown>
#11 0x5651b7f0b19b <unknown>
#12 0x5651b7ef3c65 <unknown>
#13 0x5651b7f0bec8 <unknown>
#14 0x5651b7ee7360 <unknown>
#15 0x5651b7f27a68 <unknown>
#16 0x5651b7f27be8 <unknown>
#[17](https://github.com/A13437858/771980/runs/6257326616?check_suite_focus=true#step:6:17) 0x5651b7f417fd <unknown>
#[18](https://github.com/A13437858/771980/runs/6257326616?check_suite_focus=true#step:6:18) 0x7f7118810609 <unknown>

Traceback (most recent call last):
  File "/home/runner/work/77[19](https://github.com/A13437858/771980/runs/6257326616?check_suite_focus=true#step:6:19)80/771980/epic/src/main.py", line 11, in <module>
    Fire(Scaffold)
  File "/opt/hostedtoolcache/Python/3.10.4/x64/lib/python3.10/site-packages/fire/core.py", line 141, in Fire
    component_trace = _Fire(component, args, parsed_flag_args, context, name)
  File "/opt/hostedtoolcache/Python/3.10.4/x64/lib/python3.10/site-packages/fire/core.py", line 466, in _Fire
    component, remaining_args = _CallAndUpdateTrace(
  File "/opt/hostedtoolcache/Python/3.10.4/x64/lib/python3.10/site-packages/fire/core.py", line 681, in _CallAndUpdateTrace
    component = fn(*varargs, **kwargs)
  File "/home/runner/work/771980/771980/epic/src/services/scaffold.py", line 143, in claim
    claimer.run(silence=silence, log_ignore=ignore, unreal=unreal)
  File "/home/runner/work/771980/771980/epic/src/apis/scaffold/claimer.py", line 25, in run
    ClaimerScheduler(silence=silence, unreal=unreal).job_loop_claim(log_ignore)
  File "/home/runner/work/771980/771980/epic/src/services/deploy.py", line 169, in job_loop_claim
    claimer.just_do_it()
  File "/home/runner/work/771980/771980/epic/src/services/deploy.py", line 376, in just_do_it
    self.inline_bricklayer()
  File "/home/runner/work/771980/771980/epic/src/services/deploy.py", line 450, in inline_bricklayer
    self.bricklayer.claim_booster(self._ctx_cookies, self._ctx_session)
  File "/home/runner/work/771980/771980/epic/src/services/bricklayer/game.py", line 280, in claim_booster
    return self.empty_shopping_payment(ctx_cookies=ctx_cookies, ctx_session=ctx_session)
  File "/home/runner/work/771980/771980/epic/src/services/bricklayer/game.py", line [21](https://github.com/A13437858/771980/runs/6257326616?check_suite_focus=true#step:6:21)5, in empty_shopping_payment
    self.cart_handle_payment(ctx_session)
  File "/home/runner/work/771980/771980/epic/src/services/bricklayer/core.py", line 1038, in cart_handle_payment
    self._duel_with_challenge(ctx)
  File "/home/runner/work/771980/771980/epic/src/services/bricklayer/core.py", line 858, in _duel_with_challenge
    return self.armor.anti_hcaptcha(ctx, dir_model=DIR_MODEL, window="free")
> File "/home/runner/work/771980/771980/epic/src/services/bricklayer/core.py", line [37](https://github.com/A13437858/771980/runs/6257326616?check_suite_focus=true#step:6:37)0, in anti_hcaptcha
    self.switch_challenge_iframe(ctx)
  File "/home/runner/work/771980/771980/epic/src/services/bricklayer/core.py", line 177, in switch_challenge_iframe
    WebDriverWait(ctx, 5).until(
  File "/opt/hostedtoolcache/Python/3.10.4/x[64](https://github.com/A13437858/771980/runs/6257326616?check_suite_focus=true#step:6:64)/lib/python3.10/site-packages/selenium/webdriver/support/wait.py", line 89, in until
    raise TimeoutException(message, screen, stacktrace)
QIN2DIM commented 2 years ago

啊,所以结果是什么

A13437858 commented 2 years ago

啊,所以结果是什么

TypeError: cannot unpack non-iterable NoneType object

A13437858 commented 2 years ago

啊,所以结果是什么

这样就没了,游戏还没领到就到下阶段跑到结束了

A13437858 commented 2 years ago

image

A13437858 commented 2 years ago

啊 我收到领到游戏的邮件了 不知道这是不是正常的,看到这么大一串重复的还以为领不了了...

QIN2DIM commented 2 years ago

可以在 view raw logs 里面把 content 复制到新建的 .log 文件然后传上来吗,注意处理一下敏感信息。

A13437858 commented 2 years ago

01.log 好的

fatinghenji commented 2 years ago

碰到类似问题 logs.txt

QIN2DIM commented 2 years ago

@fatinghenji orz 你们还真就直接 ctrl cv 了233 你们都不看一下复制出来的内容吗,里面好多乱码符号。