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

接口标签功能无法使用,保存时提示“服务器出错” #2518

Open
Starrah opened this issue Mar 21, 2022 · 1 comment
Open

Comments

@Starrah
Copy link

Starrah commented Mar 21, 2022

版本号

v1.10.2 (通过docker镜像部署)

什么问题

接口的标签功能无法使用,一旦给任何接口设置任何标签,在保存时就会提示“服务器出错”,如下图所示
image

通过F12查看网络请求,POST yapi_domain/api/interface/up返回的状态码是200,内容是{"errcode":40011,"errmsg":"服务器出错...","data":null}

查看服务端运行的标准输出,得到如下图所示的报错
image

如何复现此问题

  1. 新建任意接口,保存
  2. 给接口添加任意tag,保存

什么浏览器

Chrome/99.0.4844.51

什么系统(Linux, Windows, macOS)

Linux (Ubuntu 20.04)

@Starrah
Copy link
Author

Starrah commented Mar 21, 2022

我认为是 #1918 引入的问题,并且应该可以被 #2374 修复。可以的话烦请尽快merge上述PR。谢谢!
@ariesly15 @hellosean1025

yangqiang added a commit to yangqiang/yapi that referenced this issue Mar 2, 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

1 participant