Skip to content

Releases 1.4.8 版本,本地运行报错,It looks like you are using Playwright Sync API inside the asyncio loop. Please use the Async API instead. #274

@Anlet

Description

@Anlet

Describe the bug
我使用了Releases 1.4.8 版本,
按照Development的环境要求配置前后端的依赖和环境,
启动前后端,访问网址,在订阅管理中添加订阅URL并点击获取时报错。

To Reproduce
Steps to reproduce the behavior:

  1. 启动前后端,访问网址,在订阅管理中添加订阅URL并点击获取时报错。
Image
  1. 错误:
Image Image ` Traceback (most recent call last): File "", line 1, in import sys; sys.path.insert(0, r'c:\Users\cosmos\.vscode\extensions\ms-python.debugpy-2025.18.0-win32-x64\bundled\libs\debugpy\_vendored\pydevd'); import pydevd; pydevd.config('http_json', 'debugpy-dap'); pydevd.settrace(host='127.0.0.1', port=57182, suspend=False, trace_only_current_thread=False, patch_multiprocessing=True, access_token=None, client_access_token='c309839c91ef79c1b96f82bd8f224ccc0d93af23e554cfa07e0bd5bab5bbc842', __setup_holder__={'client': '127.0.0.1', 'client-access-token': 'c309839c91ef79c1b96f82bd8f224ccc0d93af23e554cfa07e0bd5bab5bbc842', 'debug-mode': 'debugpy-dap', 'json-dap-http': True, 'multiprocess': True, 'port': 57182, 'ppid': 28096, 'preimport': 'c:\\Users\\cosmos\\.vscode\\extensions\\ms-python.debugpy-2025.18.0-win32-x64\\bundled\\libs\\debugpy\\launcher/../..\\debugpy/..;debugpy._vendored.force_pydevd', 'server': False, 'skip-notify-stdin': True}); from multiprocessing.spawn import spawn_main; spawn_main(parent_pid=28096, pipe_handle=668) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "d:\Users\cosmos\anaconda3\envs\we-mp-rss\Lib\site-packages\playwright\sync_api\_context_manager.py", line 84, in start return self.__enter__() ~~~~~~~~~~~~~~^^ File "d:\Users\cosmos\anaconda3\envs\we-mp-rss\Lib\site-packages\playwright\sync_api\_context_manager.py", line 47, in __enter__ raise Error( ...<2 lines>... ) playwright._impl._errors.Error: It looks like you are using Playwright Sync API inside the asyncio loop. Please use the Async API instead. `

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions