Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when the password in the connection URI contains certain characters #787

Open
snahor opened this issue Sep 8, 2018 · 3 comments
Open

Comments

@snahor
Copy link

snahor commented Sep 8, 2018

Sorry if this is not the right place to report this or if it has been reported already.

With any of ?, {, ^, ]:

Error: parse ...

FTR these work:

$ psql postgres://user:123qwe}@postgres:5432/db?sslmode=disable
$ psql postgres://user:123qwe^@postgres:5432/db?sslmode=disable
$ psql postgres://user:123qwe?@postgres:5432/db?sslmode=disable
$ psql postgres://user:123qwe]@postgres:5432/db?sslmode=disable

BTW, I got those errors when I was using env vars with drone and pgweb.

@rogerhub
Copy link

rogerhub commented Sep 8, 2018

Just a guess: Have you tried URL encoding the special characters? https://developer.mozilla.org/en-US/docs/Glossary/percent-encoding

@dwest
Copy link

dwest commented Mar 22, 2019

Just FYI, percent encoding special characters doesn't appear to work if you use the key=value form instead of the url form of the connection string. If someone else is fighting with that same issue switch to the url form and see if it works.

@onesick
Copy link

onesick commented Sep 10, 2019

Whoever have this parsing problem.
gobuffalo/pop#402 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants