-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
h5st_server.py报错(是playwright和flask的版本不对的原因吗):
Jingdong-AutoScript/h5st_server.py
Line 67 in c40fc01
| 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
Labels
No labels