Please include the root cause in the exception message
@mridang is already working on this.
Since Mar 4, 2026.
Assessment
This issue has not been assessed yet.
Description
Please include the root cause in the exception message in com.zitadel.ApiException class.
Currently, com.zitadel.ApiException.getMessage() returns a concatenation of "Error " and status code; the error returned is "Error 400", which is the HTTP status code for a bad client request.
For example, if I provide an invalid organisation name criterion for a search request that exceeds 200 characters, the root cause can be found in the response body, which contains the following content for the above example:
{"code": "invalid_argument", "message": "invalid ListOrganizationsRequest.Queries[0]: embedded message failed validation | caused by: invalid SearchQuery.NameQuery: embedded message failed validation | caused by: invalid OrganizationNameQuery.Name: value length must be between 1 and 200 runes, inclusive"}.
A more user-friendly error message from com.zitadel.ApiException.getMessage(): "Error 400: invalid OrganizationNameQuery.Name: value length must be between 1 and 200 runes, inclusive"
- Dominant language
- Java
- Stars
- 9
- Forks
- 4
- Avg merge
- 1h 40m
- Merged PRs (30d)
- 1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from zitadel/client-java
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
zitadel/client-java#136 ·
-
Release SDK for V5 Open
zitadel/client-java#113 · 1 assignee ·
-
zitadel/client-java#44 · 1 reaction · 1 assignee ·
All issues in zitadel/client-java
Similar issues
-
bug untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
opensearch-project/ml-commons#5094 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
emitter:client:csharp feature
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
affects/8.10 affects/8.9 component/clients kind/bug likelihood/mid severity/mid
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Two open-case totals on one screen: the Programs tile says 15,858 and the nav badge says 15,868 Openbug frontend maui-pilot
Difficulty 2/5 1-3 hours Newbie friendliness 72/100