Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Psycopg2 Operational Error: No password supplied #19

Open
khwilo opened this issue Apr 22, 2019 · 0 comments
Open

Psycopg2 Operational Error: No password supplied #19

khwilo opened this issue Apr 22, 2019 · 0 comments

Comments

@khwilo
Copy link

khwilo commented Apr 22, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant