Replies: 1 comment
|
好像是偶尔加载不出来页面的问题,要是一直这样再分享一下问题 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Run python main.py
2026-04-08 08:09:51,824 - app - INFO - tasks.py:280 - 开始执行任务
2026-04-08 08:09:51,825 - app - INFO - tasks.py:292 - 开始处理账号 卢瞳
Traceback (most recent call last):
File "/home/runner/work/DouYinSparkFlow/DouYinSparkFlow/main.py", line 10, in
runTasks()
File "/home/runner/work/DouYinSparkFlow/DouYinSparkFlow/core/tasks.py", line 294, in runTasks
do_user_task(browser, username, cookies, targets)
File "/home/runner/work/DouYinSparkFlow/DouYinSparkFlow/core/tasks.py", line 249, in do_user_task
for username in scroll_and_select_user(page, username, targets):
File "/home/runner/work/DouYinSparkFlow/DouYinSparkFlow/core/tasks.py", line 91, in scroll_and_select_user
page.wait_for_selector(first_friend_selector)
File "/opt/hostedtoolcache/Python/3.11.15/x64/lib/python3.11/site-packages/playwright/sync_api/_generated.py", line 8217, in wait_for_selector
self._sync(
File "/opt/hostedtoolcache/Python/3.11.15/x64/lib/python3.11/site-packages/playwright/_impl/_sync_base.py", line 115, in _sync
return task.result()
^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.11.15/x64/lib/python3.11/site-packages/playwright/_impl/_page.py", line 419, in wait_for_selector
return await self._main_frame.wait_for_selector(**locals_to_params(locals()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.11.15/x64/lib/python3.11/site-packages/playwright/_impl/_frame.py", line 369, in wait_for_selector
await self._channel.send(
File "/opt/hostedtoolcache/Python/3.11.15/x64/lib/python3.11/site-packages/playwright/_impl/_connection.py", line 69, in send
return await self._connection.wrap_api_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.11.15/x64/lib/python3.11/site-packages/playwright/_impl/_connection.py", line 559, in wrap_api_call
raise rewrite_error(error, f"{parsed_st['apiName']}: {error}") from None
playwright._impl._errors.TimeoutError: Page.wait_for_selector: Timeout 120000ms exceeded.
Call log:
Error: Process completed with exit code 1.
说是页面元素选择器过期导致的超时错误
All reactions