Error Returned From Database: password authentication failed for user "postgres"
              
              #2531
            
            
              
                Unanswered
              
          
                  
                    
                      DennisTheMenace780
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 1 comment 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
                  
                
            
  
    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