[Error] sites get_by_path_with_path is not working with invalid request.
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
- 35/100
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện lệnh gọi Python đến get_by_path_with_path với đường dẫn SharePoint được cung cấp và kiểm tra request mà nó gửi đến Microsoft Graph. So sánh đường dẫn đã mã hóa và phản hồi invalidRequest được trả về với request API dự kiến; hoàn tất khi quá trình tải xuống thành công hoặc giới hạn của SDK và cách sử dụng bắt buộc được ghi lại.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Client id and secret was made with having API permission as below.
Files.Read.All
Files.ReadWrite.All
Sites.FullControl.All
What I want to download file of URL is https://mngenvmcap115298.sharepoint.com/sites/sampleteam/Shared%20Documents/general/PDF-ER.docx
async def getfile():
file = await client.sites.by_site_id("0aa18ca9-16b0-4673-abf0-b14ec9649ee4").get_by_path_with_path("/Shared%20Documents/General/PDF-ER.docx").get()
return file
value = asyncio.run(getfile())
error is here
{"message": null, "response_status_code": 400, "response_headers": "Headers({'cache-control': 'no-store, no-cache', 'transfer-encoding': 'chunked', 'content-type': 'application/json', 'content-encoding': 'gzip', 'vary': 'Accept-Encoding', 'strict-transport-security': 'max-age=31536000', 'request-id': 'ec72f171-946a-4628-8d06-1cc51cd368ce', 'client-request-id': '6b0d9456-23c7-4633-af1a-91cfca73d637', 'x-ms-ags-diagnostic': '{\"ServerInfo\":{\"DataCenter\":\"Japan East\",\"Slice\":\"E\",\"Ring\":\"5\",\"ScaleUnit\":\"000\",\"RoleInstance\":\"TY1PEPF0000A88F\"}}', 'date': 'Tue, 01 Aug 2023 08:38:04 GMT'})", "additional_data": {}, "error": {"additional_data": {}, "code": "invalidRequest", "details": null, "inner_error": {"additional_data": {"date": "8:38:05"}, "client_request_id": "6b0d9456-23c7-4633-af1a-91cfca73d637", "date": null, "odata_type": null, "request_id": "ec72f171-946a-4628-8d06-1cc51cd368ce"}, "message": "Invalid request", "target": null}}
How can I resolve?
Using msgraph-core 1.0.0a4, msgraph-sdk 1.0.0a13 which might be latest since I installl it today. WSL2, Python 3.10.12
- Ngôn ngữ chính
- Python
- Star
- 630
- Fork
- 96
- Merge trung bình
- 15 giờ 20 phút
- Pull request đã merge (30 ngày)
- 3
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-python
-
status:waiting-for-triage type:bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
microsoftgraph/msgraph-sdk-python#1570 ·
-
status:waiting-for-triage type:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
microsoftgraph/msgraph-sdk-python#1563 ·
-
Needs: Attention :wave: type:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
microsoftgraph/msgraph-sdk-python#1287 · 2 bình luận · 1 reaction ·
-
Batch Request Support Đang mởstatus:waiting-for-triage
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
microsoftgraph/msgraph-sdk-python#1557 ·
-
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-python#1556 · 1 bình luận · 1 reaction ·
Tất cả issue của microsoftgraph/msgraph-sdk-python
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
-
🐛 Bug 🔔 Pending processing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
jumpserver/jumpserver#17584 ·