Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gold22 opened this issue Nov 15, 2024 · 5 comments
Open

Comments

@gold22
Copy link

gold22 commented Nov 15, 2024

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"}}}
@gold22 gold22 added the status:waiting-for-triage An issue that is yet to be reviewed or assigned label Nov 15, 2024
@grncdr
Copy link

grncdr commented Dec 13, 2024

I am seeing exactly the same thing. Code that previously worked to create folders in the approot started returning this error a few weeks ago.

Maybe relevant: the diagnostic information in the response also points to the "Germany West Central" DataCenter:

cache-control: "private"
transfer-encoding: "chunked"
content-type: "application/json"
content-encoding: "gzip"
vary: "Accept-Encoding"
strict-transport-security: "max-age=31536000"
request-id: "4a43deeb-c816-4e9e-b239-5d82819ed28d"
client-request-id: "4a43deeb-c816-4e9e-b239-5d82819ed28d"
x-ms-ags-diagnostic: "{\"ServerInfo\":{\"DataCenter\":\"Germany West Central\",\"Slice\":\"E\",\"Ring\":\"4\",\"ScaleUnit\":\"000\",\"RoleInstance\":\"FR1PEPF000007A9\"}}"
date: "Tue, 10 Dec 2024 12:10:23 GMT"

{
  "error": {
    "code": "itemNotFound",
    "message": "The object specified does not belong to a list.",
    "innerError": {
      "code": "listNotFound",
      "date": "2024-12-10T12:10:23",
      "request-id": "4a43deeb-c816-4e9e-b239-5d82819ed28d",
      "client-request-id": "4a43deeb-c816-4e9e-b239-5d82819ed28d"
    }
  }
}

EDIT: also relevant, I'm not using this SDK, just a plain HTTP client, so I think this is a regression/bug on the server side.

@Ndiritu
Copy link
Contributor

Ndiritu commented Jan 13, 2025

Thanks for reporting this @gold22 and for the additional context @grncdr.

This doesn't point to an SDK issue however there might have been an issue on the API side, does this still occur?

@Ndiritu Ndiritu added status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close and removed status:waiting-for-triage An issue that is yet to be reviewed or assigned labels Jan 13, 2025
@skvalex
Copy link

skvalex commented Jan 13, 2025

@Ndiritu users of my app that uses https://github.com/OneDrive/onedrive-sdk-android also reported this issue, so it must be on the API side, people reported that it started happening in November. The app itself didn't get updated for quite a long time.
I cannot reproduce the problem myself, but it seems like it happens for only these users who have Microsoft Family 365 subscription plan, or used to have it

Here's a log provided by a user

OneDrive Service exception Error code: itemNotFound
Error message: The object specified does not belong to a list.

POST https://api.onedrive.com/v1.0/drive/special/approot/children
X-RequestStats : SDK-Version=Android-v1.3.1
Authorization : bearer EwBoA61DBAAUQCpJ6x8+/2gxByq[...]
{"folder":{},"name":"incoming"}

404 : Not Found
[...]

[Some information was truncated for brevity, enable debug logging for more details]
com.onedrive.sdk.http.OneDriveServiceException: Error code: itemNotFound
Error message: The object specified does not belong to a list.

POST https://api.onedrive.com/v1.0/drive/special/approot/children
X-RequestStats : SDK-Version=Android-v1.3.1
Authorization : bearer EwBoA61DBAAUQCpJ6x8+/2gxByq[...]
{"folder":{},"name":"incoming"}

404 : Not Found
[...]

@gold22
Copy link
Author

gold22 commented Jan 19, 2025

We had the last support ticket on the 26th November, but it might not mean anything. We could not reproduce the issue themselves, it probably related to a server product type (Microsoft SharePoint, ...), account or subscription type, region... Currently we use msgraph-sdk-php v1.110.0.

The problem is when our customers go to Microsoft support with this problem they get the standard answer the Microsoft services work fine and the problem is in the third-party products. So, we cannot get neither confirm nor fix on the API side. Could you recommend what should we do in such cases?

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs: Attention 👋 and removed status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close labels Jan 19, 2025
@iWader
Copy link

iWader commented Jan 19, 2025

We are also hitting this problem for a customer who recently connected our software with their Microsoft account.

We have many other accounts connected and don't seem to be having this problem.

Also cannot replicate with personal or organisation Microsoft accounts our development team have access to.

I can only assume it's related to this customer's particular Microsoft account and/or configuration, but don't know where to start.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants