Skip to content

❌ 线程 Hybrid-Test-1 获取h5st失败,取消本次请求。 #2

@oyxy2019

Description

@oyxy2019

h5st_server.py报错(是playwright和flask的版本不对的原因吗):

page.on("request", handle_request)

[2025-10-06 15:28:42,924] ERROR in app: Exception on /get_h5st [POST]
Traceback (most recent call last):
  File "D:\Python\Anaconda3\envs\lookcode\lib\site-packages\flask\app.py", line 2073, in wsgi_app
    response = self.full_dispatch_request()
  File "D:\Python\Anaconda3\envs\lookcode\lib\site-packages\flask\app.py", line 1519, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "D:\Python\Anaconda3\envs\lookcode\lib\site-packages\flask\app.py", line 1517, in full_dispatch_request
    rv = self.dispatch_request()
  File "D:\Python\Anaconda3\envs\lookcode\lib\site-packages\flask\app.py", line 1503, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
  File "d:/Users/oyxy2019/Desktop/Jingdong-AutoScript-main/h5st_server.py", line 67, in get_h5st
    page.on("request", handle_request)
  File "D:\Python\Anaconda3\envs\lookcode\lib\site-packages\playwright\sync_api\_generated.py", line 7591, in on
    return super().on(event=event, f=f)
  File "D:\Python\Anaconda3\envs\lookcode\lib\site-packages\playwright\_impl\_sync_base.py", line 126, in on
    self._impl_obj.on(event, self._wrap_handler(f))
  File "D:\Python\Anaconda3\envs\lookcode\lib\site-packages\pyee\base.py", line 107, in on
    return self.add_listener(event, f)
  File "D:\Python\Anaconda3\envs\lookcode\lib\site-packages\pyee\base.py", line 142, in add_listener
    self._add_event_handler(event, f, f)
  File "D:\Python\Anaconda3\envs\lookcode\lib\site-packages\playwright\_impl\_connection.py", line 178, in _add_event_handler
    self._update_subscription(event, True)
  File "D:\Python\Anaconda3\envs\lookcode\lib\site-packages\playwright\_impl\_connection.py", line 169, in _update_subscription
    self._connection.wrap_api_call_sync(
  File "D:\Python\Anaconda3\envs\lookcode\lib\site-packages\playwright\_impl\_connection.py", line 536, in wrap_api_call_sync
    raise rewrite_error(error, f"{parsed_st['apiName']}: {error}") from None
RuntimeError: : no running event loop

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