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

InvalidURIError with hash character in PG database password. #125

Open
dtuite opened this issue Dec 28, 2012 · 3 comments
Open

InvalidURIError with hash character in PG database password. #125

dtuite opened this issue Dec 28, 2012 · 3 comments

Comments

@dtuite
Copy link

dtuite commented Dec 28, 2012

Bit of a weird problem here. Basically I'm trying to setup a taps server so I can pull the contents of a PG database over HTTP.

The password for the database is constructed like this (notice the # character): 123456#abc.

Whenever I try to start the server with

taps server postgres://localdbuser:localdbpass@localhost/dbname httpuser httppassword

I get a URI::InvalidURIError

URI::InvalidURIError -> the scheme postgres does not accept registry part: localdbuser:123456 (or bad hostname?)

The fact that the error only quotes the password up as far as the # character makes me think that this char is triggering the error. Is there some way I can escape it so it doesn't choke?

@esromneb
Copy link

I am also having this issue. For me I have a password with an @ in it. What is the proper way to escape such passwords?

@rodfersou
Copy link

This S.O. do the trick http://stackoverflow.com/a/22978703/2116850

Use %40 instead of @ and %23 for #

@rodfersou
Copy link

can someone close this issue?

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

3 participants