Chat2DB Bug:在Docker下的Web客户端保存MySQL和SQL Server时出现错误信息

js4nwp54  于 3个月前  发布在  Docker
关注(0)|答案(6)|浏览(53)

Chat2DB版本

1.2.0

描述bug

需要的请求参数'id'对于方法参数类型Long是存在的,但是被转换为null。

drnojrws

drnojrws1#

你好,执行时出现什么错误信息?你能截个屏展示具体的操作吗?

f5emj3cl

f5emj3cl2#

Not only mysql8, but also connecting to SqlServer is the same. The test connection is successful, but an error is reported when saving

$x_{1c0d1}x$

pdkcd3nj

pdkcd3nj3#

你好,执行时出现什么错误信息?你能截个屏展示具体操作吗?
我刚用截图回复了。我使用的是网页版。在连接mysql8和SqlServer时,都报告了相同的错误信息。

yebdmbv4

yebdmbv44#

你好,执行时出现什么错误信息?你能截个屏展示具体操作吗?
我刚回复了一个截图。我正在使用网页版。连接到mysql8和SqlServer时,报告了相同的错误信息。
我刚才试了一下,它运行正常。可以正常保存。

uxhixvfz

uxhixvfz5#

这有点令人困惑。我使用了mysql8.0.35和sqlserver2017的docker镜像,当点击保存时,两者都报告了错误,但在点击测试连接提示成功。使用其他工具(如dbeaver)进行连接是正常的。

ef1yzkbh

ef1yzkbh6#

{
  "getApplicationMessage": {
    "env": "prod",
    "versions": "1.2.0",
    "buildTime": 1717043800085,
    "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36"
  },
  "errorCode": "common.paramError",
  "errorMessage": "Required request parameter 'id' for method parameter type Long is present but converted to null",
  "errorDetail": null,
  "solutionLink": " [https://github.com/chat2db/Chat2DB/wiki/Chat2DB](https://github.com/chat2db/Chat2DB/wiki/Chat2DB) ",
  "requestUrl": "/api/connection/datasource/create",
  "requestParams": "{"ssh":{"use":false,"hostName":"","port":"22","userName":"wyq","localPort":"","authenticationType":"password","password":"XXXXX"},"driverConfig":{"jdbcDriverClass":"com.mysql.cj.jdbc.Driver","jdbcDriver":"mysql-connector-java-8.0.30.jar"},"alias":"@xxxxx","environmentId":2,"storageType":"LOCAL","host":"XXXXX","port":"3308","authenticationType":"1","user":"root","password":"XXXXX","database":"mytest","url":"jdbc:mysql://XXXXX:3308/mytest","extendInfo":[{"key":"zeroDateTimeBehavior","value":"convertToNull"}],"connectionEnvType":"DAILY","type":"MYSQL"}"
}

相关问题