easy-yapi icon indicating copy to clipboard operation
easy-yapi copied to clipboard

[ERROR] [malformedRequestError] Found 122 errors with the supplied collection.

Open Muscleape opened this issue 2 years ago • 3 comments

错误信息

        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

操作

image

配置

     [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

Muscleape avatar Aug 11 '23 03:08 Muscleape

从postman中创建新的文件夹,在IDEA中指定新文件夹,保存后选择的文件夹变更为unknow,操作生成的时候还是报这个错误 image

Muscleape avatar Aug 11 '23 03:08 Muscleape

[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一下?

tangcent avatar Aug 11 '23 13:08 tangcent

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.

stale[bot] avatar Sep 17 '23 11:09 stale[bot]