Please include the root cause in the exception message
@mridang ci sta già lavorando.
Dal 4/3/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
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"
- Lingua principale
- Java
- Stelle
- 9
- Fork
- 4
- Merge medio
- 1h 40m
- PR unite (30g)
- 1
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di zitadel/client-java
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
zitadel/client-java#136 ·
-
Release SDK for V5 Aperta
zitadel/client-java#113 · 1 assegnatario ·
-
zitadel/client-java#44 · 1 reazione · 1 assegnatario ·
Tutte le issue di zitadel/client-java
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
elastic/gradle-plugins#157 ·
-
enhancement Tools
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
apache/rocketmq-dashboard#5008 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
DETECT_PARAMETER_NAMES=false silently disables @ConstructorProperties-based Creator detection too Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
FasterXML/jackson-databind#6229 ·