Skip to content

您好,我在使用的时候总是报错超时,请问应该调整什么地方呀(在docker里部署使用的) #271

@xhaxhahx

Description

@xhaxhahx

2025-09-19 22:24:03 | DEBUG | main:execute_browser_tasks:55 | Starting Epic Games collection task
2025-09-19 22:24:06 | DEBUG | main:execute_browser_tasks:69 | Browser initialized successfully
2025-09-19 22:24:06 | DEBUG | main:execute_browser_tasks:72 | Initiating Epic Games authentication
2025-09-19 22:24:25 | SUCCESS | services.epic_authorization_service:invoke:121 | Epic Games is already logged in
2025-09-19 22:24:25 | DEBUG | main:execute_browser_tasks:75 | Authentication completed
2025-09-19 22:24:25 | DEBUG | main:execute_browser_tasks:78 | Starting free games collection process
2025-09-19 22:24:36 | DEBUG | services.epic_games_service:collect_epic_games:184 | Discover promotion
{
"title": "Samorost 2",
"url": "https://store.epicgames.com/en-US/p/7e3160660b3f406aa92c77971f04c4e1"
}
2025-09-19 22:24:36 | DEBUG | services.epic_games_service:collect_epic_games:184 | Discover promotion
{
"title": "Project Winter",
"url": "https://store.epicgames.com/en-US/p/7d768bd73c50476f9832d8265114a742"
}
2025-09-19 22:25:45 | ERROR | services.epic_games_service:collect_epic_games:195 | Locator.text_content: Timeout 30000ms exceeded.
Call log:

  • waiting for locator("//aside//button[@data-testid='purchase-cta-button']")

Traceback (most recent call last):
File "/app/app/deploy.py", line 182, in
asyncio.run(deploy())
File "/usr/lib/python3.12/asyncio/runners.py", line 194, in run
return runner.run(main)
File "/usr/lib/python3.12/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
File "/usr/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete
self.run_forever()
File "/usr/lib/python3.12/asyncio/base_events.py", line 641, in run_forever
self._run_once()
File "/usr/lib/python3.12/asyncio/base_events.py", line 1987, in _run_once
handle._run()
File "/usr/lib/python3.12/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/app/app/deploy.py", line 113, in deploy
await execute_browser_tasks(headless=headless)
File "/app/app/deploy.py", line 81, in execute_browser_tasks
await agent.collect_epic_games()

File "/app/app/services/epic_games_service.py", line 193, in collect_epic_games
await self.epic_games.collect_weekly_games(game_promotions)
File "/app/.venv/lib/python3.12/site-packages/tenacity/asyncio/init.py", line 189, in async_wrapped
return await copy(fn, *args, **kwargs)
File "/app/.venv/lib/python3.12/site-packages/tenacity/asyncio/init.py", line 111, in call
do = await self.iter(retry_state=retry_state)
File "/app/.venv/lib/python3.12/site-packages/tenacity/asyncio/init.py", line 153, in iter
result = await action(retry_state)
File "/app/.venv/lib/python3.12/site-packages/tenacity/_utils.py", line 99, in inner
return call(*args, **kwargs)
File "/app/.venv/lib/python3.12/site-packages/tenacity/init.py", line 418, in exc_check
raise retry_exc.reraise()
File "/app/.venv/lib/python3.12/site-packages/tenacity/init.py", line 185, in reraise
raise self.last_attempt.result()
File "/usr/lib/python3.12/concurrent/futures/_base.py", line 449, in result
return self.__get_result()
File "/usr/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result
raise self._exception
File "/app/.venv/lib/python3.12/site-packages/tenacity/asyncio/init.py", line 114, in call
result = await fn(*args, **kwargs)
File "/app/app/services/epic_games_service.py", line 374, in collect_weekly_games
if not await self.add_promotion_to_cart(self.page, urls):
File "/app/app/services/epic_games_service.py", line 273, in add_promotion_to_cart
purchase_status = await purchase_btn.text_content()
File "/app/.venv/lib/python3.12/site-packages/playwright/async_api/_generated.py", line 17603, in text_content
await self._impl_obj.text_content(timeout=timeout)
File "/app/.venv/lib/python3.12/site-packages/playwright/_impl/_locator.py", line 630, in text_content
return await self._frame.text_content(
File "/app/.venv/lib/python3.12/site-packages/playwright/_impl/_frame.py", line 648, in text_content
return await self._channel.send(
File "/app/.venv/lib/python3.12/site-packages/playwright/_impl/_connection.py", line 69, in send
return await self._connection.wrap_api_call(
File "/app/.venv/lib/python3.12/site-packages/playwright/_impl/_connection.py", line 558, in wrap_api_call
raise rewrite_error(error, f"{parsed_st['apiName']}: {error}") from None
playwright._impl._errors.TimeoutError: Locator.text_content: Timeout 30000ms exceeded.
Call log:

  • waiting for locator("//aside//button[@data-testid='purchase-cta-button']")

2025-09-19 22:25:45 | DEBUG | services.epic_games_service:collect_epic_games:201 | All tasks in the workflow have been completed
2025-09-19 22:25:45 | DEBUG | main:execute_browser_tasks:82 | Free games collection completed
2025-09-19 22:25:45 | DEBUG | main:execute_browser_tasks:85 | Cleaning up browser resources
2025-09-19 22:25:45 | DEBUG | main:execute_browser_tasks:93 | Browser tasks execution finished successfully
2025-09-19 22:25:45 | DEBUG | main:deploy:160 | Epic Games scheduler started successfully
2025-09-19 22:25:45 | DEBUG | main:deploy:161 | Current time: 2025-09-19 22:25:45 CST

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions