Error Returned From Database: password authentication failed for user "postgres"
#2531
Replies: 3 comments 2 replies
-
|
I see you are following the zero2prod book, I am having the same problem also. |
Beta Was this translation helpful? Give feedback.
-
|
I managed to resolve this issue by using another password, which may help some of you. I didn't manage to find the factor causing the issue (whether it's the size or a specific character), but it worked fine with a different password. |
Beta Was this translation helpful? Give feedback.
-
|
That Rust Analyzer error, at least for me, was caused by opening the project from Windows; launching VS Code from WSL ( |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to run
cargo testbut I keep getting password authentication issues coming fromsqlxthat I can't quite debug. As far as I am aware,sqlxreads from a top-level.envfile with a DB URL, this is what I have in my.env:DATABASE_URL="postgres://postgres:password@localhost:5432/newsletter"I have included my tests below with
sqlxand maybe something might spring out, but I can't really figure out why it won't pick up the password.Beta Was this translation helpful? Give feedback.
All reactions