pageplug icon indicating copy to clipboard operation
pageplug copied to clipboard

创建数据源,datasourceStorages字段问题

Open bourne-3 opened this issue 1 year ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Description

image 创建mysql数据源,https://lowcode.methodot.com/api/v1/datasources 这个接口 我看在代码中,有这样的校验: image 当没有 datasourceStorages 为空的时候,应该会报错,我看接口也没传这个参数,咋不会报。。

我本地部署后, 请求则报错了

Steps To Reproduce

1、部署server端 2、请求接口(已确保 workspace_id 与 application_id 是正确) 3、查看报错为:

{
    "responseMeta": {
        "status": 400,
        "success": false,
        "error": {
            "code": "AE-APP-4000",
            "title": "ARGUMENT_ERROR",
            "message": "Please enter a valid parameter datasource.",
            "errorType": "Invalid parameter"
        }
    },
    "errorDisplay": "AE-APP-4000: Please enter a valid parameter datasource."
}

Public Sample App

No response

Environment

Deploy Preview

Issue video log

No response

Version

1.9.35

bourne-3 avatar Mar 18 '24 05:03 bourne-3

你用的是在线体验环境的吧?在线体验环境的是1.8.15版本;源码是后面版本改的了,在线的版本太老了,所以在线环境看不见传值

AppsmithCN avatar Mar 18 '24 09:03 AppsmithCN