easy-yapi
easy-yapi copied to clipboard
[ERROR] [malformedRequestError] Found 122 errors with the supplied collection.
错误信息
run easy-yapi
[INFO] Start find apis...
[TRACE] find config file:/Users/muscleape/Projects/xxx/xxx-server/.easy.api.config
[DEBUG] use recommend config
[INFO] search api from: com.xxx.xxx.server.controller.api.TestController
[INFO] PrivateToken of postman be found
[ERROR] [malformedRequestError] Found 122 errors with the supplied collection.
[INFO] try fix collection.....
[ERROR] [malformedRequestError] Found 122 errors with the supplied collection.
[INFO] Apis exported completed
Process finished with exit code 0
操作
配置
[email protected]#value
[email protected]#defaultValue
[email protected]#required
[email protected]#hidden
[email protected]#value
[email protected]#value
[email protected]#value
[email protected]#required
[email protected]#tags
method.additional.header[groovy:it.containingClass().name().startsWith("com.xxx.xxx.server.controller.web")]={name: "Authorization",desc: "认证Token",required:true}
method.additional.header[groovy:!it.hasAnn("com.xxx.xxx.server.utils.NotNeedToken")]={name: "Authorization",desc: "认证Token",required:true}
EasyYapi 版本:2.6.1.212.0 IDE版本 :2023.2 OS:M1 MACOS 13.2.1
从postman中创建新的文件夹,在IDEA中指定新文件夹,保存后选择的文件夹变更为unknow,操作生成的时候还是报这个错误
[ERROR] [malformedRequestError] Found 122 errors with the supplied collection.
这个问题我之前也遇到过,已经做了一些处理。 你这个问题得把请求内容拿出来看看,是哪一部分有问题。
http.call.before=groovy:```
logger.info("call:"+request.url()+"\n body:"+request.body())
Thread.sleep(5000)
```
body体太大可能打印不出来,可就需要clone这个项目,debug一下。
从postman中创建新的文件夹,在IDEA中指定新文件夹,保存后选择的文件夹变更为unknow
这个问题很奇怪,我没办法复现。你可以尝试debug一下?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.