# Postgres error 28P01: password authentication failed for user "x"

> The server rejected the password for that role.

Source: https://scribase.com/postgres-errors/28p01

SQLSTATE class: Invalid Authorization Specification. Over PostgREST/supabase-js this maps to HTTP 403.

## Causes

- A wrong or rotated password in the connection string.
- Special characters in the password not URL-encoded in a postgresql:// URL (@, :, /, # and %).
- Using the password of a different project or branch, or the wrong user name format a pooler expects.

## Fixes

- Copy the connection string again from the dashboard.
- URL-encode the password, for example with encodeURIComponent.
- Rotate the password and update every place that uses it.