ashepA
ZITADEL14mo ago
3 replies
ashep

Getting "User could not be found (QUERY-Dfbg2)" upon session creation for existing user

Hello!

I have a self-hosted ZITADEL v2.59.5 installation with Postgres.

I have created a user with a username that is unique across the entire instance. When I am calling POST /v2/sessions API with the following payload:

{
    "checks": {
        "user": {
            "loginName": "theusername"
        }
    }
}


I am getting the following error:

{
    "code": 5,
    "message": "User could not be found (QUERY-Dfbg2)",
    "details": [
        {
            "@type": "type.googleapis.com/zitadel.v1.ErrorDetail",
            "id": "QUERY-Dfbg2",
            "message": "User could not be found"
        }
    ]
}


All other users can create sessions without problems. Can someone point me out what to check in my installation to find the source of this problem and how to fix it.

Thanks a lot!
Was this page helpful?