You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to connect to a PostgreSQL 13.4 instance, I found passwords containing the # character would result in failure:
getaddrinfo EAI_AGAIN postgres postgres:5432
Worth noting, this instance isn't at port 5432, so a bit of an odd error message.
A post on stackexchange claims that the node-postgres package doesn't accept passwords containing hashtags. The recommendation is to encode passwords using encodeURIComponent. For example:
The text was updated successfully, but these errors were encountered:
jackrsteiner
changed the title
Connection to Postgres fails with passwords containing hashtags #
Connection to Postgres fails for passwords containing hashtags #
Sep 3, 2021
When attempting to connect to a PostgreSQL 13.4 instance, I found passwords containing the # character would result in failure:
Worth noting, this instance isn't at port 5432, so a bit of an odd error message.
A post on stackexchange claims that the node-postgres package doesn't accept passwords containing hashtags. The recommendation is to encode passwords using encodeURIComponent. For example:
const
userPasswordDatabase =${encodeURIComponent(database.dbPassword)}@
;The text was updated successfully, but these errors were encountered: