You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
问题:向激活状态中的MockGroup粘贴Data时发生报错
版本:v2.16.0
系统:MacOS 12.2
报错日志:
ERROR [mock server exception]: Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1820, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1796, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "/usr/local/lib/python3.8/site-packages/flask_restful/init.py", line 467, in wrapper
resp = resource(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/flask/views.py", line 107, in view
return current_app.ensure_sync(self.dispatch_request)(**kwargs)
File "/usr/local/lib/python3.8/site-packages/flask_restful/init.py", line 582, in dispatch_request
resp = meth(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/lyrebird/mock/blueprints/apis/mock_editor.py", line 23, in put
context.application.data_manager.paste(_id)
File "/usr/local/lib/python3.8/site-packages/lyrebird/mock/dm/init.py", line 727, in paste
_group_id = self._copy_node(_parent_node, _node, name=new_name, origin_name=_node['name'], **kwargs)
File "/usr/local/lib/python3.8/site-packages/lyrebird/mock/dm/init.py", line 749, in _copy_node
self._adapter._add_group(new_node, **kwargs)
File "/usr/local/lib/python3.8/site-packages/lyrebird/mock/dm/file_data_adapter.py", line 68, in _add_group
self._save_prop()
File "/usr/local/lib/python3.8/site-packages/lyrebird/mock/dm/file_data_adapter.py", line 141, in _save_prop
self.context.reactive()
File "/usr/local/lib/python3.8/site-packages/lyrebird/mock/dm/init.py", line 409, in reactive
self.activate(_group_id)
File "/usr/local/lib/python3.8/site-packages/lyrebird/mock/dm/init.py", line 335, in activate
data_list = self._adapter._load_data_by_query({'id': ordered_data_id})
File "/usr/local/lib/python3.8/site-packages/lyrebird/mock/dm/file_data_adapter.py", line 108, in _load_data_by_query
datas.append(self._load_data(_id))
File "/usr/local/lib/python3.8/site-packages/lyrebird/mock/dm/file_data_adapter.py", line 101, in _load_data
raise DataNotFound(f'Data file {path}')
lyrebird.mock.dm.file_data_adapter.DataNotFound: Data file /root/.lyrebird/mock_data/personal/9832e086-99c7-4df5-9c89-941f36592349
The text was updated successfully, but these errors were encountered:
问题:向激活状态中的MockGroup粘贴Data时发生报错
版本:v2.16.0
系统:MacOS 12.2
报错日志:
ERROR [mock server exception]: Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1820, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1796, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "/usr/local/lib/python3.8/site-packages/flask_restful/init.py", line 467, in wrapper
resp = resource(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/flask/views.py", line 107, in view
return current_app.ensure_sync(self.dispatch_request)(**kwargs)
File "/usr/local/lib/python3.8/site-packages/flask_restful/init.py", line 582, in dispatch_request
resp = meth(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/lyrebird/mock/blueprints/apis/mock_editor.py", line 23, in put
context.application.data_manager.paste(_id)
File "/usr/local/lib/python3.8/site-packages/lyrebird/mock/dm/init.py", line 727, in paste
_group_id = self._copy_node(_parent_node, _node, name=new_name, origin_name=_node['name'], **kwargs)
File "/usr/local/lib/python3.8/site-packages/lyrebird/mock/dm/init.py", line 749, in _copy_node
self._adapter._add_group(new_node, **kwargs)
File "/usr/local/lib/python3.8/site-packages/lyrebird/mock/dm/file_data_adapter.py", line 68, in _add_group
self._save_prop()
File "/usr/local/lib/python3.8/site-packages/lyrebird/mock/dm/file_data_adapter.py", line 141, in _save_prop
self.context.reactive()
File "/usr/local/lib/python3.8/site-packages/lyrebird/mock/dm/init.py", line 409, in reactive
self.activate(_group_id)
File "/usr/local/lib/python3.8/site-packages/lyrebird/mock/dm/init.py", line 335, in activate
data_list = self._adapter._load_data_by_query({'id': ordered_data_id})
File "/usr/local/lib/python3.8/site-packages/lyrebird/mock/dm/file_data_adapter.py", line 108, in _load_data_by_query
datas.append(self._load_data(_id))
File "/usr/local/lib/python3.8/site-packages/lyrebird/mock/dm/file_data_adapter.py", line 101, in _load_data
raise DataNotFound(f'Data file {path}')
lyrebird.mock.dm.file_data_adapter.DataNotFound: Data file /root/.lyrebird/mock_data/personal/9832e086-99c7-4df5-9c89-941f36592349
The text was updated successfully, but these errors were encountered: