Unable to get Streams using batched requests, Length always zero
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 38/100
Hướng nghiên cứu
Bắt đầu với BatchRequestContentCollection.AddBatchRequestStepAsync, Batch.PostAsync và GetResponseStreamByIdAsync bằng cách sử dụng yêu cầu nội dung drive-item được cung cấp. So sánh phản hồi theo lô với phản hồi trực tiếp của Content.GetAsync và kiểm tra các header cùng stream được trả về. Được xem là hoàn tất khi các phản hồi stream theo lô chứa nội dung được yêu cầu thay vì Content-Length: 0.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the bug
When using BatchRequestContentCollection (or BatchRequestContent) to request a stream content it only returns an empty stream (Length = 0). This happens regardless of whether there is a single or multiple requests in the collection.
var batchRequestContentCollection = new BatchRequestContentCollection(_graphClient);
var driveItemRequest = _graphClient.Drives[driveId].Items[driveItemId].Content.ToGetRequestInformation();
var requestId = await batchRequestContentCollection.AddBatchRequestStepAsync(driveItemRequest);
var batchResponse = await _graphClient.Batch.PostAsync(batchRequestContentCollection);
var stream = await batchResponse.GetResponseStreamByIdAsync(requestId);
I also tried to just use GetResponseByIdAsync, Header information says
Content-Type: application/octet-stream
Content-Length: 0
This does not occur when doing a single request without batching:
var stream = await _graphClient.Drives[driveId].Items[driveItemId].Content.GetAsync();
The stream gets returned correctly then.
Expected behavior
Batched requests should return stream content correctly.
How to reproduce
var batchRequestContentCollection = new BatchRequestContentCollection(_graphClient);
var driveItemRequest = _graphClient.Drives[driveId].Items[driveItemId].Content.ToGetRequestInformation();
var requestId = await batchRequestContentCollection.AddBatchRequestStepAsync(driveItemRequest);
var batchResponse = await _graphClient.Batch.PostAsync(batchRequestContentCollection);
var stream = await batchResponse.GetResponseStreamByIdAsync(requestId);
SDK Version
3.2.1
Latest version known to work for scenario above?
don't know
Configuration
- OS: Windows 11
- x64
- Ngôn ngữ chính
- C#
- Star
- 163
- Fork
- 65
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoftgraph/msgraph-sdk-dotnet-core
-
status:waiting-for-triage type:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
status:waiting-for-triage type:bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
microsoftgraph/msgraph-sdk-dotnet-core#1047 · 3 bình luận · 8 reaction ·
-
status:waiting-for-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
microsoftgraph/msgraph-sdk-dotnet-core#1046 · 2 bình luận · 2 reaction ·
-
.NET
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
-
Fix CI build on windows-latestCó thể làm lại được @ramsessanchez đã nhận 302 ngày trước và không có pull request nào đang mở. Đang mở
microsoftgraph/msgraph-sdk-dotnet-core#1003 · 1 người được giao ·
Tất cả issue của microsoftgraph/msgraph-sdk-dotnet-core
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
dette technique priorité: basse zone: service
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
damiensabau/nexus-lobby#25 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
sebastienros/jint#4282 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 76/100
pyrevitlabs/pyRevit#3792 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
clawsweeper:needs-product-decision clawsweeper:needs-security-review clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:security impact:ux-friction issue-rating: 🦞 diamond lobster P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
openclaw/openclaw-windows-node#1763 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày