-
Notifications
You must be signed in to change notification settings - Fork 40
[Feature] hubble配置域名时,host超长。 #369
Description
Feature Description (功能描述)
{
"status": 400,
"data": null,
"message": "\n### Error updating database. Cause: org.h2.jdbc.JdbcSQLDataException: Value too long for column """HOST"" VARCHAR(48) DEFAULT 'localhost' NOT NULL": "'aiasojojdss.cssessd.com' (77)"; SQL statement:\nINSERT INTO graph_connection ( name,\ngraph,\nhost,\nport,\ntimeout,\nusername,\npassword,\n\n\ncreate_time ) VALUES ( ?,\n?,\n?,\n?,\n?,\n?,\n?,\n\n\n? ) [22001-199]\n### The error may exist in com/baidu/hugegraph/mapper/GraphConnectionMapper.java (best guess)\n### The error may involve com.baidu.hugegraph.mapper.GraphConnectionMapper.insert-Inline\n### The error occurred while setting parameters\n### SQL: INSERT INTO graph_connection ( name, graph, host, port, timeout, username, password, create_time ) VALUES ( ?, ?, ?, ?, ?, ?, ?, ? )\n### Cause: org.h2.jdbc.JdbcSQLDataException: Value too long for column """HOST"" VARCHAR(48) DEFAULT 'localhost' NOT NULL": "'xxx.com' (77)"; SQL statement:\nINSERT INTO graph_connection ( name,\ngraph,\nhost,\nport,\ntimeout,\nusername,\npassword,\n\n\ncreate_time ) VALUES ( ?,\n?,\n?,\n?,\n?,\n?,\n?,\n\n\n? ) [22001-199]\n; Value too long for column """HOST"" VARCHAR(48) DEFAULT 'localhost' NOT NULL": "'webpreview-189940-8080-fdd29b8b7b6b4dfaac6f2f598c1bd199.icoding.baidu-int.com' (77)"; SQL statement:\nINSERT INTO graph_connection ( name,\ngraph,\nhost,\nport,\ntimeout,\nusername,\npassword,\n\n\ncreate_time ) VALUES ( ?,\n?,\n?,\n?,\n?,\n?,\n?,\n\n\n? ) [22001-199]; nested exception is org.h2.jdbc.JdbcSQLDataException: Value too long for column """HOST"" VARCHAR(48) DEFAULT 'localhost' NOT NULL": "'xxx.com' (77)"; SQL statement:\nINSERT INTO graph_connection ( name,\ngraph,\nhost,\nport,\ntimeout,\nusername,\npassword,\n\n\ncreate_time ) VALUES ( ?,\n?,\n?,\n?,\n?,\n?,\n?,\n\n\n? ) [22001-199]",
"cause": "org.h2.jdbc.JdbcSQLDataException: Value too long for column """HOST"" VARCHAR(48) DEFAULT 'localhost' NOT NULL": "'xxx.com' (77)"; SQL statement:\nINSERT INTO graph_connection ( name,\ngraph,\nhost,\nport,\ntimeout,\nusername,\npassword,\n\n\ncreate_time ) VALUES ( ?,\n?,\n?,\n?,\n?,\n?,\n?,\n\n\n? ) [22001-199]"
}
host仅允许48个字符,太短了。