Azure / Azure/Connectors-NET-Samples
[Bug] OneDrive ListRootFolder returns 502 BadGateway from API Hub
- Ngôn ngữ chính
- C#
- Star
- 3
- Fork
- 3
- Merge trung bình
- 4 ngày 14 giờ
- Pull request đã merge (30 ngày)
- 3
Mô tả
## Summary
The `onedrive/root` endpoint consistently returns 502 BadGateway from the API Hub, both locally and in Azure deployment.
## Repro
`GET https://sdk-connector-samples.azurewebsites.net/api/onedrive/root`
## Error
The connector calls `GET /datasets/default/folders` which returns 502 from the API Hub gateway (source: `0a8e3a9fa83240839c163637de5e83f0.08.common.logic-df.azure-apihub.net`, innerError status 500).
## Questions to investigate
1. Is `ListRootFolderAsync()` the right API - or should `GetFilesFromFolderAsync()` be used instead?
2. Does `/datasets/default/folders` work with MSI-authenticated connections?
3. Is this a transient API Hub issue or a connection configuration problem?
## Connection details
- Namespace: `sdk-test-gateway` (nsUrlId: `0a8e3a9fa83240839c163637de5e83f0`)
- Connection: `onedriveforbusiness-test`
- MSI ACL: granted (objectId `d77681c2-bb7f-4b90-ba93-2b9cee96cbae`)
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện GET /api/onedrive/root và lần theo ListRootFolderAsync() đến lệnh gọi /datasets/default/folders. So sánh đường dẫn đó với GetFilesFromFolderAsync() và kiểm tra kết nối được xác thực bằng MSI đối với lỗi API Hub 502 đã được báo cáo. Hoàn tất khi xác định được lỗi nằm ở API được chọn, cấu hình kết nối MSI hay API Hub, với một đường dẫn hoạt động đã được xác minh hoặc một blocker được ghi lại.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- azure, csharp
- Lĩnh vực
- api, authentication, backend, cloud
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 38/100