docs: style fixup

Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com>
pull/5591/head
wayne 2024-09-05 09:19:56 -06:00 committed by GitHub
parent 57364e5a23
commit 44de7b72f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 6 deletions

View File

@ -552,20 +552,20 @@ passwords provided by cloud database providers which may automatically include
special symbols in order to make their passwords harder to guess. special symbols in order to make their passwords harder to guess.
For example, the following DSN used in InfluxDB Clustered: For example, the following DSN used in InfluxDB Clustered:
```
```txt
postgresql://postgres:meow#meow@my-fancy.cloud-database.party:5432/postgres postgresql://postgres:meow#meow@my-fancy.cloud-database.party:5432/postgres
``` ```
Would result in error logs that look like: Would result in an error similar to:
``` ```txt
Catalog DSN error: A catalog error occurred: unhandled external error: error with configuration: invalid port number Catalog DSN error: A catalog error occurred: unhandled external error: error with configuration: invalid port number
``` ```
To fix this, the connection string would have to have the password (or any To fix this, percent-encode special symbols in the connection string:
other part such as options) percent-encoded like so:
``` ```txt
postgresql://postgres:meow%23meow@my-fancy.cloud-database.party:5432/postgres postgresql://postgres:meow%23meow@my-fancy.cloud-database.party:5432/postgres
``` ```