Re: Python API Development Course, Heroku Auth Error

Hello ,

I have been following the Python API development course on youtube directed by sanjeev and have been loving it.

Unfortunately I have run into an error that I can not solve - at 12:01:00 sanjeev uses heroku to run “alembic upgrade head” in order to produce the db tables on application server, and when I follow this example I get the following errors:

  • sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at “ec2-184-73-25-2.compute-1.amazonaws.com” (184.73.25.2), port 5432 failed: FATAL: password authentication failed for user “nkcxwxawjxpqpv”

  • connection to server at “ec2-184-73-25-2.compute-1.amazonaws.com” (184.73.25.2), port 5432 failed: FATAL: no pg_hba.conf entry for host “3.231.221.226”, user “nkcxwxawjxpqpv”, database “d1ask0mcjsl2te”, SSL off

I have done everything I can to find the problem, looked over all the environment variables set in heroku and still cannot find the problem.

Please let me know if anyone has any ideas for solving this problem.

Thank you.

Hi, I have the exact same problem, did you find a solution?