Error Returned From Database: password authentication failed for user "postgres"
#2531
Unanswered
DennisTheMenace780
asked this question in
Q&A
Replies: 2 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.
2 replies
-
|
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.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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