Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

向激活状态中的MockGroup粘贴Data时发生报错 #786

Open
lijuncai794 opened this issue Sep 8, 2023 · 0 comments
Open

向激活状态中的MockGroup粘贴Data时发生报错 #786

lijuncai794 opened this issue Sep 8, 2023 · 0 comments
Assignees

Comments

@lijuncai794
Copy link

问题:向激活状态中的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

@yumiguan yumiguan self-assigned this Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants