Skip to content

Psycopg2 Operational Error: No password supplied #19

@khwilo

Description

@khwilo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions