"Invalid db url" although it seems very correct
laurentS opened this issue · comments
Laurent Savaete commented
Describe the bug
I run ~/path/to/dblab -u postgres://postgres:postgres@localhost:5432/mydb?sslmode=disable
and get the following error (the db url is valid, I use it with psql
and other tools.
Error: postgres://postgres:postgres@localhost:5432/openfindata?sslmode=disable: invalid url
Usage:
dblab [flags]
dblab [command]
Available Commands:
help Help about any command
version The version of the project
Flags:
--config get the connection data from a config file (default is $HOME/.dblab.yaml or the current directory)
--db string Database name
--driver string Database driver
-h, --help help for dblab
--host string Server host name or IP
--pass string Password for user
--port string Server port
--ssl string SSL mode
-u, --url string Database connection string
--user string Database user
Use "dblab [command] --help" for more information about a command.
Error: postgres://postgres:postgres@localhost:5432/openfindata?sslmode=disable: invalid url
As a bonus problem, my shell is messed up after the crash (typed text on the command line is invisible), and I need to reset
it to be able to see my input again.
To Reproduce
Steps to reproduce the behavior:
- run
~/path/to/dblab -u postgres://postgres:postgres@localhost:5432/mydb?sslmode=disable
- see error above
Expected behavior
A valid url should not fail, and the terminal should be left like it was.
Screenshots
N/A
OS (please complete the following information):
- debian linux unstable
- downloaded this release https://github.com/danvergara/dblab/releases/download/v0.12.0/dblab_0.12.0_linux_amd64.tar.gz
Additional context
Daniel Omar Vergara Pérez commented