422 error while creating database connection with MySQL 5.7 #407
Closed
Description
Hello,
I am testing this on my local machine with MySQL 5.7. Does it support mysql 5.7 or any specific version?
The following call fails with 422 for me. Can't make out what is the error here. Appreciate any clue.
bash-3.2$ curl -X POST 'http://localhost/api/v1/database-connections' --header 'Content-Type: application/json' --data-raw '{ "alias": "test", "use_ssh": false, "connection_uri": mysql+pymysql://<user>:<passwd>@localhost:3306/openai }'
{"detail":[{"loc":["body",55],"msg":"Expecting value: line 1 column 56 (char 55)","type":"value_error.jsondecode","ctx":{"msg":"Expecting value","doc":"{ \"alias\": \"test\", \"use_ssh\": false, \"connection_uri\": mysql+pymysql://<user>:<passwd>@localhost:3306/openai }","pos":55,"lineno":1,"colno":56}}]}
bash-3.2$
Metadata
Assignees
Labels
No labels