microsoftgraph / microsoftgraph/msgraph-sdk-java
Body missing in ApiException
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 444
- Forks
- 154
- Avg merge
- 18h 28m
- Merged PRs (30d)
- 4
Description
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
Contributor guide
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.
Research direction
Start with ApiException and compare the existing getResponseHeaders() accessor with the v5 GraphServiceException.getMessage(true) behavior described in the issue. Determine whether the failed response body is retained and whether the existing headers are response or request headers. Done means the intended body accessor and header naming are resolved and covered by the project’s relevant tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100