-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
升级到最新版本后修改文档时报错 #2371
Comments
This was referenced Oct 28, 2021
Open
我的情况是 编辑接口 带tag 保存报错 提示如下 [ error ] Cannot read property 'toObject' of null
TypeError: Cannot read property 'toObject' of null
at projectModel.handleEnvNullData (/yapi/vendors/server/models/project.js:85:17)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async interfaceController.autoAddTag (/yapi/vendors/server/controllers/interface.js:396:25)
at async interfaceController.up (/yapi/vendors/server/controllers/interface.js:825:5)
at async /yapi/vendors/server/utils/commons.js:436:9
at async module.exports (/yapi/vendors/server/middleware/mockServer.js:152:15) 解决的方法是: handleEnvNullData(data){
if (data == null) {
return false;
}
data = data.toObject();
data.toObject = ()=> data; 添加了 if (data == null) {
return false;
} 不知道大佬们有没有更好的解决办法~ |
先生真乃神人也 解决了 |
先生真乃神人也 解决了 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
版本号
1.10.2
什么问题
今天升级到最新版本后修改文档时报错。
如何复现此问题
修改任意接口文档。
什么浏览器
Chrome
什么系统(Linux, Windows, macOS)
操作的电脑是Windows,服务器是Linux
The text was updated successfully, but these errors were encountered: