Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Unable to create a directory: The object specified does not belong to a list

Đang mở
#1,616 12 bình luận 3 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
20/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
php
Lĩnh vực
api

Hướng nghiên cứu

Không có tệp repository hoặc test nào được nêu; issue chỉ cung cấp các trace request của Microsoft Graph từ PHP SDK 1.110.0. Hãy bắt đầu bằng cách tái hiện approot lookup và children request, sau đó xác định liệu lỗi nằm ở việc xây dựng request của SDK hay ở Graph service. Công việc được xem là hoàn tất khi có nguyên nhân được maintainer xác nhận và một hướng giải quyết được xác định phạm vi rõ ràng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Needs: Attention :wave:

What could be wrong here? It worked earlier and stopped to work about 2 weeks ago.

GET /v1.0/me/drive/special/approot HTTP/1.1
Content-Type: application/json
SdkVersion: Graph-php-1.110.0
Authorization: Bearer ********
User-Agent: GuzzleHttp/7
Host: graph.microsoft.com

HTTP/1.1 200 OK
Cache-Control: no-store, no-cache, max-age=0, private
Transfer-Encoding: chunked
Content-Type: application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
Strict-Transport-Security: max-age=31536000
request-id: 93259803-6c02-4582-88ec-1f45c50ca19a
client-request-id: 93259803-6c02-4582-88ec-1f45c50ca19a
x-ms-ags-diagnostic: {"ServerInfo":{"DataCenter":"Germany West Central","Slice":"E","Ring":"4","ScaleUnit":"002","RoleInstance":"FR3PEPF000008CD"}}
OData-Version: 4.0
Date: Fri, 15 Nov 2024 08:18:24 GMT

{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#users('xxxxxx-xxxxxxx%40outlook.de')/drive/special/$entity","createdDateTime":"2024-03-10T07:09:28Z","eTag":"\"{78751E2B-8EB0-20D8-80E8-D50000000000},6\"","id":"E8D88EB078751E2B!213","lastModifiedDateTime":"2024-10-24T00:36:09Z","name":"xxxxx-xxxxxx","webUrl":"https://onedrive.live.com?cid=E8D88EB078751E2B&id=E8D88EB078751E2B!213","cTag":"\"c:{78751E2B-8EB0-20D8-80E8-D50000000000},0\"","size":20029330948,"createdBy":{"user":{"email":"[email protected]","id":"E8D88EB078751E2B","displayName":"xxxxxx xxxxxxxx"}},"lastModifiedBy":{"application":{"id":"ed8f33e5-13aa-47bd-a574-ad0c9ee15a52","displayName":"Graph"},"user":{"email":"[email protected]","id":"E8D88EB078751E2B","displayName":"xxxxxx xxxxxxxx"}},"parentReference":{"driveType":"personal","driveId":"E8D88EB078751E2B","id":"E8D88EB078751E2B!212","name":"Anwendungen","path":"/drive/root:/Anwendungen","siteId":"4c023662-e0a3-4f4c-a1f2-1797fe75a500"},"fileSystemInfo":{"createdDateTime":"2024-03-10T07:09:28Z","lastModifiedDateTime":"2024-10-24T00:36:09Z"},"folder":{"childCount":2,"view":{"sortBy":"name","sortOrder":"ascending","viewType":"thumbnails"}},"shared":{"scope":"users","owner":{"user":{"email":"[email protected]","id":"E8D88EB078751E2B","displayName":"xxxxxx xxxxxxxx"}}},"specialFolder":{"name":"appRoot"}}


GET /v1.0/drives/E8D88EB078751E2B HTTP/1.1
Content-Type: application/json
SdkVersion: Graph-php-1.110.0
Authorization: Bearer ********
User-Agent: GuzzleHttp/7
Host: graph.microsoft.com

HTTP/1.1 200 OK
Cache-Control: no-store, no-cache
Transfer-Encoding: chunked
Content-Type: application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
Strict-Transport-Security: max-age=31536000
request-id: 1ac53ed0-5141-416f-9846-fed03ea94a31
client-request-id: 1ac53ed0-5141-416f-9846-fed03ea94a31
x-ms-ags-diagnostic: {"ServerInfo":{"DataCenter":"Germany West Central","Slice":"E","Ring":"4","ScaleUnit":"005","RoleInstance":"FR3PEPF00000356"}}
OData-Version: 4.0
Date: Fri, 15 Nov 2024 08:18:25 GMT

{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#drives/$entity","createdDateTime":"2024-10-23T12:04:46Z","description":"","id":"E8D88EB078751E2B","lastModifiedDateTime":"2024-11-05T10:47:04Z","name":"OneDrive","webUrl":"https://my.microsoftpersonalcontent.com/personal/e8d88eb078751e2b/Documents","driveType":"personal","createdBy":{"user":{"displayName":"SharePoint App"}},"lastModifiedBy":{"user":{"displayName":"System Account"}},"owner":{"user":{"email":"[email protected]","displayName":"xxxxxx xxxxxxxx"}},"quota":{"deleted":0,"remaining":1084801364787,"state":"normal","total":1104880336896,"used":20078972109,"storagePlanInformation":{"upgradeAvailable":false}}}


GET /v1.0%2Fme%2Fdrive%2Fspecial%2Fapproot%3A%2Ftest%3A?select=name,size,folder,file HTTP/1.1
Content-Type: application/json
SdkVersion: Graph-php-1.110.0
Authorization: Bearer ********
User-Agent: GuzzleHttp/7
Host: graph.microsoft.com

HTTP/1.1 404 Not Found
Cache-Control: no-store, no-cache, max-age=0, private
Transfer-Encoding: chunked
Content-Type: application/json
Strict-Transport-Security: max-age=31536000
request-id: 4ccef600-082a-43fa-9cc2-c8330296538e
client-request-id: 4ccef600-082a-43fa-9cc2-c8330296538e
x-ms-ags-diagnostic: {"ServerInfo":{"DataCenter":"Germany West Central","Slice":"E","Ring":"4","ScaleUnit":"000","RoleInstance":"FR1PEPF000007A9"}}
Date: Fri, 15 Nov 2024 08:18:25 GMT

{"error":{"code":"itemNotFound","message":"The resource could not be found.","innerError":{"date":"2024-11-15T08:18:26","request-id":"4ccef600-082a-43fa-9cc2-c8330296538e","client-request-id":"4ccef600-082a-43fa-9cc2-c8330296538e"}}}


POST /v1.0%2Fme%2Fdrive%2Fspecial%2Fapproot/children HTTP/1.1
Content-Length: 27
Content-Type: application/json
SdkVersion: Graph-php-1.110.0
Authorization: Bearer ********
User-Agent: GuzzleHttp/7
Host: graph.microsoft.com

{"name":"test","folder":{}}

HTTP/1.1 404 Not Found
Cache-Control: private
Transfer-Encoding: chunked
Content-Type: application/json
Strict-Transport-Security: max-age=31536000
request-id: 8050f7aa-b739-4188-a2e2-67dc38f1a355
client-request-id: 8050f7aa-b739-4188-a2e2-67dc38f1a355
x-ms-ags-diagnostic: {"ServerInfo":{"DataCenter":"Germany West Central","Slice":"E","Ring":"4","ScaleUnit":"001","RoleInstance":"FR2PEPF00000586"}}
Date: Fri, 15 Nov 2024 08:18:26 GMT

{"error":{"code":"itemNotFound","message":"The object specified does not belong to a list.","innerError":{"code":"listNotFound","date":"2024-11-15T08:18:26","request-id":"8050f7aa-b739-4188-a2e2-67dc38f1a355","client-request-id":"8050f7aa-b739-4188-a2e2-67dc38f1a355"}}}
Ngôn ngữ chính
PHP
Star
670
Fork
149
Merge trung bình
12 giờ 6 phút
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoftgraph/msgraph-sdk-php

Tất cả issue của microsoftgraph/msgraph-sdk-php

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.