Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Get Content from drive returns None

オープン
#1,578 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
52/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
api

調査の方向性

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 の本文から書いたものです。

説明

status:waiting-for-triage type:bug
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
スター
630
フォーク
96
平均マージ
15時間 20分
マージ済み PR(30日)
3

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoftgraph/msgraph-sdk-python のほかの issue

microsoftgraph/msgraph-sdk-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。