microsoftgraph / microsoftgraph/msgraph-sdk-java

Body missing in ApiException

未關閉
#2,321 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

status:waiting-for-triage type:feature
主要語言
Java
星號
444
分支
154
平均合併
18 小時 28 分鐘
30 天內合併 PR
4

描述

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

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

從 ApiException 開始,將現有的 getResponseHeaders() 存取器與 issue 中描述的 v5 GraphServiceException.getMessage(true) 行為進行比較。確認失敗回應的 body 是否會被保留,以及現有的 headers 是回應 headers 還是請求 headers。當預期的 body 存取器與 header 命名確定,並由專案的相關測試涵蓋時,即視為完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
java
領域
api
Issue 類型
功能
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
38/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。