myoufM
ZITADEL•3w ago
myouf

500 errors on API V2 after migration to Zitadel v4

Hi Zitadel community šŸ‘‹ We had a Zitadel instance in v2.67.2 that we gradually migrated to v4.2.0. Some queries to the V2 API now return 500 errors, for example:
Call to /v2/users

Request body :
{
  "query": {
    "offset": "0",
    "limit": 100,
    "asc": true
  },
  "sortingColumn": "USER_FIELD_NAME_EMAIL",
  "queries": [
    {
      "inUserIdsQuery": {
        "userIds": [
          "337531633278126348"
        ]
      }
    }
  ]
}

500 Response :
{
    "code": 13,
    "message": "An internal error occurred (QUERY-AG4gs)",
    "details": [
        {
            "@type": "type.googleapis.com/zitadel.v1.ErrorDetail",
            "id": "QUERY-AG4gs",
            "message": "An internal error occurred"
        }
    ]
}


Previously, this query returned a 200 with the list of users found. Doc about this endpoint: https://zitadel.com/docs/apis/resources/user_service_v2/user-service-list-users

On the Zitadel instance pod, here is the log that I can see:
2025-12-02T11:23:03.821813793Z time="2025-12-02T11:23:03Z" level=info msg=activity caller="/home/runner/work/zitadel/zitadel/internal/activity/activity.go:105" domain="**********" grpcStatus=13 httpStatus=500 instance=************* isSystemUser=false method=/zitadel.user.v2.UserService/ListUsers org=************ path=/v2/users requestMethod=POST trigger=resourceAPI user=***************


Has anyone else experienced this kind of problem after migrating? Thank you all!
Was this page helpful?