microsoftgraph / microsoftgraph/msgraph-sdk-java
Body missing in ApiException
Nessuno ha ancora preso questa issue.
- Lingua principale
- Java
- Stelle
- 444
- Fork
- 154
- Merge medio
- 18h 28m
- PR unite (30g)
- 4
Descrizione
Is your feature request related to a problem? Please describe the problem.
In v6 I am missing a method to get the body of a failed request, which may help to reproduce an issue.
With v5 I'm able to call graphServiceException.getMessage(true); which contains the headers and body of the failed request. However in v6 there is a method for the headers apiException.getResponseHeaders(), but none for the body.
Question on that: Are these really the responseHeaders and not the requestHeaders of the failed request? I don't see why someone would need the headers of the response message. So maybe this case is just a naming issue.
Describe the solution you'd like.
Add method getRequestBody or getResponseBody analogue to getRequestHeaders or getResponseHeaders
Additional context?
No response
Guida per i contributori
Apri la guida per i contributori
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.
Direzione di ricerca
Inizia da ApiException e confronta l’accessor esistente getResponseHeaders() con il comportamento di v5 GraphServiceException.getMessage(true) descritto nell’issue. Determina se il body della risposta non riuscita viene conservato e se gli header esistenti sono header della risposta o della richiesta. Il lavoro è completato quando l’accessor previsto per il body e la denominazione degli header sono stati definiti e sono coperti dai test pertinenti del progetto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java
- Ambito
- api
- Tipo di issue
- Funzionalità
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 38/100