Kratos can not parse postgresql password which has special characters #1660
-
Hi, I am learning Kratos. After checkout the quickstart, I want to change the setup a little bit by using PostgreSQL. Then I got a problem that Kratos can not parse dsn which contains special characters. Password in the example: (A?(+8CJAr5&4gk$L) INFO[2021-08-18T15:45:49+07:00] No tracer configured - skipping tracing setup audience=application service_name=Ory Kratos service_version=v0.7.1-alpha.1
WARN[2021-08-18T15:45:49+07:00] Unable to connect to database, retrying. audience=application error=map[message:cannot parse `postgres://root:[email protected]:5432/kratos?sslmode=disable&max_conns=20&max_idle_conns=4`: faile
d to parse as URL (parse "postgres://root:(A?(+8CJAr5&4gk$L)@127.0.0.1:5432/kratos?sslmode=disable&max_conns=20&max_idle_conns=4": invalid port ":(A" after host)] service_name=Ory Kratos service_version=v0.7.1-alpha.1 I worked around using a simpler password but I still wonder that do we have any way to set up DSN to work with a complex password ? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Sorry for the late response @monkjunior
This is probably a different problem on your end. Let me know if you are still stuck on this, marking as answered in the meantime. |
Beta Was this translation helpful? Give feedback.
Sorry for the late response @monkjunior
I just tried to reproduce this and I can create accounts with your example password or such as:
This is probably a different problem on your end. Let me know if you are still stuck on this, marking as answered in the meantime.