flask-jwt-auth icon indicating copy to clipboard operation
flask-jwt-auth copied to clipboard

Psycopg2 Operational Error: No password supplied

Open khwilo opened this issue 6 years ago • 0 comments

When I try to create the database on applying the migration, I encounter this error: psycopg2_operational_error

Error

The database URL is set as: postgresql://postgres:@localhost/flask_jwt_auth.

Solve

I managed to change the database URL to now include a password: postgresql://postgres:postgres@localhost/flask_jwt_auth. postgres is the password for the Postgres database which matches this pattern postgresql://user:password@localhost/database_name.

I think it will be good to include this information in the documentation if anyone encounters such an error.

Reference

https://stackoverflow.com/questions/23839656/sqlalchemy-no-password-supplied-error

khwilo avatar Apr 22 '19 10:04 khwilo