Get Content from drive returns None
還沒有人認領這個 Issue。
評估
研究方向
Reproduce the issue through client.graph_client.drives.by_drive_id(drive_id).items.by_drive_item_id(item_path).content.get() using SDK 1.63.0, then compare behavior with 1.62.0 and the requests workaround. The change is done when a valid SharePoint file request returns its file content instead of None.
由索引模型根據 Issue 內容生成。
描述
Describe the bug
Trying to get the content of a sharepoint file returns None. Example code:
content = await ( client.graph_client.drives.by_drive_id(drive_id).items.by_drive_item_id(item_path).content.get() )
This has started happening a couple days ago
Expected behavior
The api call should return the content of the file
How to reproduce
execute
drive_id = drive_id
item_path = f"root:/{file_path}:"
content = await ( client.graph_client.drives.by_drive_id(drive_id).items.by_drive_item_id(item_path).content.get() )
on a relevant drive_id and item_path and check content. The function executes successfully, but content will be None.
Even though it used to work a couple days ago, using msgraph-sdk==1.62.0 did not work either.
SDK Version
1.63.0
Latest version known to work for scenario above?
1.62.0
Known Workarounds
Use requests library to get the file
Debug output
Click to expand log
```</details>
### Configuration
_No response_
### Other information
_No response_
- 主要語言
- Python
- 星號
- 633
- 分支
- 96
- 平均合併
- 12 小時 6 分鐘
- 30 天內合併 PR
- 2
環境準備
在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
microsoftgraph/msgraph-sdk-python 的其他 Issue
-
status:waiting-for-triage type:bug
難度 1/5 1 小時以內 新手友好度 90/100
microsoftgraph/msgraph-sdk-python#1570 ·
-
status:waiting-for-triage type:bug
難度 2/5 1-3 小時 新手友好度 75/100
microsoftgraph/msgraph-sdk-python#1563 ·
-
kiota-dom-export.txt is large and included in the released package可能已有人在做 @Fryguy 於 141 天前認領。 未關閉Needs: Attention :wave: type:bug
難度 2/5 1-3 小時 新手友好度 62/100
microsoftgraph/msgraph-sdk-python#1287 · 2 則留言 · 1 個 reaction ·
-
status:waiting-for-triage
難度 5/5 一週以上 新手友好度 25/100
microsoftgraph/msgraph-sdk-python#1557 ·
-
status:waiting-for-triage type:bug
難度 3/5 1-2 天 新手友好度 55/100
microsoftgraph/msgraph-sdk-python#1556 · 1 則留言 · 1 個 reaction ·
查看 microsoftgraph/msgraph-sdk-python 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 85/100
維護者通常 1 天內回覆
-
SR_SECURITY_DESCRIPTOR.fromString drops the SACL when no DACL is present可能已有人在做 @paul7436 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 88/100
維護者通常 2 天內回覆
-
難度 2/5 1-3 小時 新手友好度 85/100
equinor/fmu-sumo-uploader#302 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 75/100
modelscope/evalscope#1821 ·
維護者通常 1 天內回覆
-
Sanity on ansible-core devel fails: ignore-2.23.txt references the removed import-3.9 test可能已有人在做 @yurnov 今天認領。 未關閉needs_triage
難度 1/5 1 小時以內 新手友好度 91/100
ansible-collections/kubernetes.core#1275 ·
維護者通常 1 天內回覆