Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Get Content from drive returns None

Aperta
#1,578 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
52/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
api

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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_
Lingua principale
Python
Stelle
630
Fork
96
Merge medio
15h 20m
PR unite (30g)
3

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoftgraph/msgraph-sdk-python

Tutte le issue di microsoftgraph/msgraph-sdk-python

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.