2022-11-11 02:47:15 | DEBUG - Downloading objects.yaml from https://raw.githubusercontent.com/QIN2DIM/hcaptcha-challenger/main/src/objects.yaml
2022-11-11 02:47:22 | DEBUG - Pulling AssetsObject from https://api.github.com/repos/qin2dim/hcaptcha-challenger/releases
2022-11-11 02:47:22 | INFO - >> STARTUP [AwesomeScheduler] SynergyTunnel - version=0.4.4-dev Pattern=False
2022-11-11 02:47:28 | INFO - >> MATCH [__context__] ??启动挑战者上下文
2022-11-11 02:47:28 | INFO - >> MATCH [CookieManager] 刷新令牌
2022-11-11 02:47:37 | INFO - >> MATCH [CookieManager] 持久化信息未过期
2022-11-11 02:47:42 | INFO - >> LOAD [CookieManager] Load context cookie
2022-11-11 02:47:42 | INFO - 初始化订单数据
2022-11-11 02:47:47 | ERROR - Failed to get order history, cookie may have expired
Traceback (most recent call last):
File "/home/epic/main.py", line 11, in <module>
Fire(Scaffold)
File "/usr/local/lib/python3.10/site-packages/fire/core.py", line 141, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
File "/usr/local/lib/python3.10/site-packages/fire/core.py", line 466, in _Fire
component, remaining_args = _CallAndUpdateTrace(
File "/usr/local/lib/python3.10/site-packages/fire/core.py", line 681, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
File "/home/epic/services/scaffold.py", line 138, in claim
claimer.run(silence=silence, log_ignore=ignore, unreal=unreal)
File "/home/epic/apis/scaffold/claimer.py", line 26, in run
ClaimerScheduler(silence=silence, unreal=unreal).job_loop_claim(log_ignore)
File "/home/epic/services/deploy.py", line 112, in job_loop_claim
claimer.just_do_it()
File "/home/epic/services/deploy.py", line 414, in just_do_it
fire(
File "/home/epic/services/utils/toolbox.py", line 84, in fire
container(context)
File "/home/epic/services/deploy.py", line 406, in run
promotions = self.preload()
File "/home/epic/services/deploy.py", line 375, in preload
order_history = self.get_order_history()
File "/home/epic/services/deploy.py", line 316, in get_order_history
self.ph.get_oder_history(ctx_cookies=self._ctx_cookies)
File "/home/epic/services/explorer/explorer.py", line 219, in get_oder_history
if resp := explorer.get_order_history(ctx_cookies):
> File "/home/epic/services/explorer/explorer.py", line 140, in get_order_history
raise RequestException("Failed to get order history, cookie may have expired")
requests.exceptions.RequestException: Failed to get order history, cookie may have expired
2022-11-11 02:47:49 | DEBUG - >> Checkout [GameClaimer] Shadow Tactics:Blades of the Shogun - state=待认领 link=https://store.epicgames.com/zh-CN/p/shadow-tactics
2022-11-11 02:47:49 | DEBUG - >> Checkout [GameClaimer] Alba - A Wildlife Adventure - state=待认领 link=https://store.epicgames.com/zh-CN/p/alba-a-wildlife-adventure-93736a
2022-11-11 02:48:04 | DEBUG - >> Checkout [GameClaimer] Shadow Tactics:Blades of the Shogun - state=获取 link=https://store.epicgames.com/zh-CN/p/shadow-tactics
2022-11-11 02:48:05 | INFO - [??] 已激活商品页零元购订单
2022-11-11 02:48:05 | DEBUG - [??] 处理购物订单...
2022-11-11 02:48:24 | DEBUG - [?] 捕获隐藏在订单中的人机挑战...
2022-11-11 02:48:25 | DEBUG - [??] 弹出内联订单框架...
2022-11-11 02:48:43 | DEBUG - >> Checkout [GameClaimer] Shadow Tactics:Blades of the Shogun - state=获取 link=https://store.epicgames.com/zh-CN/p/shadow-tactics
2022-11-11 02:48:44 | INFO - [??] 已激活商品页零元购订单
2022-11-11 02:48:44 | DEBUG - [??] 处理购物订单...
2022-11-11 02:48:58 | DEBUG - [?] 捕获隐藏在订单中的人机挑战...
2022-11-11 02:48:59 | DEBUG - [??] 弹出内联订单框架...
2022-11-11 02:49:15 | DEBUG - >> Checkout [GameClaimer] Shadow Tactics:Blades of the Shogun - state=获取 link=https://store.epicgames.com/zh-CN/p/shadow-tactics
2022-11-11 02:49:18 | INFO - [??] 已激活商品页零元购订单
2022-11-11 02:49:18 | DEBUG - [??] 处理购物订单...
2022-11-11 02:49:35 | DEBUG - [?] 捕获隐藏在订单中的人机挑战...
2022-11-11 02:49:35 | DEBUG - [??] 弹出内联订单框架...
2022-11-11 02:49:49 | DEBUG - >> Checkout [GameClaimer] Alba - A Wildlife Adventure - state=获取 link=https://store.epicgames.com/zh-CN/p/alba-a-wildlife-adventure-93736a
2022-11-11 02:49:52 | INFO - [??] 已激活商品页零元购订单
2022-11-11 02:49:52 | DEBUG - [??] 处理购物订单...
2022-11-11 02:50:32 | ERROR - An error has been caught in function 'claim', process 'MainProcess' (23), thread 'MainThread' (140164820387648):
Traceback (most recent call last):
File "/home/epic/main.py", line 11, in <module>
Fire(Scaffold)
File "/usr/local/lib/python3.10/site-packages/fire/core.py", line 141, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
File "/usr/local/lib/python3.10/site-packages/fire/core.py", line 466, in _Fire
component, remaining_args = _CallAndUpdateTrace(
File "/usr/local/lib/python3.10/site-packages/fire/core.py", line 681, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
> File "/home/epic/services/scaffold.py", line 138, in claim
claimer.run(silence=silence, log_ignore=ignore, unreal=unreal)
File "/home/epic/apis/scaffold/claimer.py", line 26, in run
ClaimerScheduler(silence=silence, unreal=unreal).job_loop_claim(log_ignore)
File "/home/epic/services/deploy.py", line 112, in job_loop_claim
claimer.just_do_it()
File "/home/epic/services/deploy.py", line 414, in just_do_it
fire(
File "/home/epic/services/utils/toolbox.py", line 84, in fire
container(context)
File "/home/epic/services/deploy.py", line 410, in run
result = empower_games_claimer(self.bricklayer, promotion.url, page, pattern="get")
File "/home/epic/services/bricklayer/game.py", line 170, in empower_games_claimer
return claimer.get_free_game(page_link=page_link, page=page, pattern=pattern)
File "/home/epic/services/bricklayer/game.py", line 157, in get_free_game
self.cart_handle_payment(page) # mode: get
File "/home/epic/services/bricklayer/core.py", line 545, in cart_handle_payment
if self._click_order_button(page): # cart_handle_payment
File "/home/epic/services/bricklayer/core.py", line 446, in _click_order_button
payment_btn.click()
File "/usr/local/lib/python3.10/site-packages/playwright/sync_api/_generated.py", line 13519, in click
self._sync(
File "/usr/local/lib/python3.10/site-packages/playwright/_impl/_sync_base.py", line 104, in _sync
return task.result()
File "/usr/local/lib/python3.10/site-packages/playwright/_impl/_locator.py", line 149, in click
return await self._frame.click(self._selector, strict=True, **params)
File "/usr/local/lib/python3.10/site-packages/playwright/_impl/_frame.py", line 484, in click
await self._channel.send("click", locals_to_params(locals()))
File "/usr/local/lib/python3.10/site-packages/playwright/_impl/_connection.py", line 43, in send
return await self._connection.wrap_api_call(
File "/usr/local/lib/python3.10/site-packages/playwright/_impl/_connection.py", line 396, in wrap_api_call
return await cb()
File "/usr/local/lib/python3.10/site-packages/playwright/_impl/_connection.py", line 78, in inner_send
result = next(iter(done)).result()
playwright._impl._api_types.TimeoutError: Timeout 30000ms exceeded.
=========================== logs ===========================
waiting for frame "xpath=//div[@id='webPurchaseContainer']//iframe"
selector resolved to hidden <iframe class="hidden" src="/purchase?highlightColor=007…></iframe>
waiting for selector "//div[@id='webPurchaseContainer']//iframe >> internal:control=enter-frame >> //button[contains(@class,'payment-btn')]"
selector resolved to hidden <button class="payment-btn payment-btn--disabled payment…>…</button>
attempting click action
waiting for element to be visible, enabled and stable
element was detached from the DOM, retrying
waiting for frame "xpath=//div[@id='webPurchaseContainer']//iframe"
selector resolved to visible <iframe class="" src="/purchase?highlightColor=0078f2&of…></iframe>
waiting for selector "//div[@id='webPurchaseContainer']//iframe >> internal:control=enter-frame >> //button[contains(@class,'payment-btn')]"
selector resolved to visible <button class="payment-btn payment-order-confirm__btn pa…>…</button>
attempting click action
waiting for element to be visible, enabled and stable
element is visible, enabled and stable
scrolling into view if needed
done scrolling
============================================================