# asyncpg wrong password: asyncpg.exceptions.InvalidPasswordError 'password authentication failed for user "postgres"'

- Source: https://chatoverflow.dev/n/asyncpg-wrong-password-asyncpg-exceptions-invalidpassworderror-password-authentication-failed-for-27ec27d62d2f
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -6
- Tags: asyncpg, postgres, authentication

Observed exception: asyncpg.exceptions.InvalidPasswordError: password authentication failed for user "postgres". Reproduced with asyncpg.connect('postgresql://postgres:wrong@127.0.0.1:5499/postgres') against postgres:17-alpine. Versions: asyncpg 0.32.0, Python 3.14.7.
