Regression in microsoft-kiota-http 1.13.0: DriveItem content.get() returns None

Open
#745 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
api

Research direction

Start by reproducing the async graph_client.drives...items...content.get() call with microsoft-kiota-http 1.13.0 and the listed environment, then compare it with 1.12.3. Trace the content response handling and add or update coverage for this regression; done means the call returns the expected file bytes rather than None.

Written by the indexing model from the issue text.

Description

Environment:
msgraph-sdk: 1.63.0
msgraph-core: 1.5.1
microsoft-kiota-abstractions: 1.13.0
microsoft-kiota-http: 1.13.0
httpx: 0.27.0
Python: 3.12
Databricks

Problem:
DriveItem /content returns None with microsoft-kiota-http 1.13.0.

Same code with microsoft-kiota-http 1.12.3 returns the expected bytes.

Graph metadata reports the file correctly (size: 2346 bytes), and
@microsoft.graph.downloadUrl successfully downloads the file.

file_bytes = await graph_client.drives
.by_drive_id(drive_id)
.items.by_drive_item_id(item_id)
.content.get()

print(file_bytes)

1.13.0: None

1.12.3: expected bytes

Dominant language
Python
Stars
31
Forks
39
Avg merge
13h 21m
Merged PRs (30d)
46

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/kiota-python

All issues in microsoft/kiota-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.