taps icon indicating copy to clipboard operation
taps copied to clipboard

InvalidURIError with hash character in PG database password.

Open dtuite opened this issue 13 years ago • 3 comments

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?

dtuite avatar Dec 28 '12 08:12 dtuite

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?

esromneb avatar Nov 18 '13 08:11 esromneb

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

Use %40 instead of @ and %23 for #

rodfersou avatar Dec 01 '15 16:12 rodfersou

can someone close this issue?

rodfersou avatar Dec 01 '15 16:12 rodfersou