microsoftgraph / microsoftgraph/msgraph-sdk-php

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

Open
#1,616 12 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Needs: Attention :wave:
Dominant language
PHP
Stars
669
Forks
150
Avg merge
15h 21m
Merged PRs (30d)
3

Description

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":"xxxxxx-xxxxxxx@outlook.de","id":"E8D88EB078751E2B","displayName":"xxxxxx xxxxxxxx"}},"lastModifiedBy":{"application":{"id":"ed8f33e5-13aa-47bd-a574-ad0c9ee15a52","displayName":"Graph"},"user":{"email":"xxxxxx-xxxxxxx@outlook.de","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":"xxxxxx-xxxxxxx@outlook.de","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":"xxxxxx-xxxxxxx@outlook.de","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"}}}

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.

Research direction

No repository file or test is named; the issue only provides Microsoft Graph request traces from PHP SDK 1.110.0. Start by reproducing the approot lookup and children request, then determine whether the failure is in SDK request construction or the Graph service. Done requires a maintainer-confirmed cause and an explicitly scoped resolution.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
api
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.