Unable to create a directory: The object specified does not belong to a list
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"}}}
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.
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 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
[...]
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?
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.
I've Plesk Obsidian 18.0.67 Update 2 running on AlmaLinux release 9.5 (Teal Serval) with one-drive extension configured to sync the backups and it has been working until a few weeks ago, which started to fail.
I've tried everything (reconfigure, reinstall etc) to no avail. In my case the error reported is:
Transport error: Extension transport: ext://one-drive-backup/server/: Required parameter not passed: "refresh_token"</errmsg>
It does not matter that I reconfigure the one-drive extension and grant privileges. It always fails.
May it be related to recent changes in OAuth2 Token Handling? Or recent changes in how items are fetched and listed?
I’ve been encountering this error ever since November.
Error:
Unable to create the remote backup: Transport error: Extension transport: ext://one-drive-backup/subscription/5/: Microsoft OneDrive returns the error: Unauthenticated
Warning:
Unable to delete the incomplete remote backup. Error: Failed to exec pmm-ras: Exit code: 129: Transport error: Extension transport: ext://one-drive-backup/subscription/5: Required parameter not passed: "refresh_token"
Could you please provide any information about the potential causes of this issue?
Will there ever be a fix? Same Problem here since month!
Hi,
Same problem, and we are not alone :
https://learn.microsoft.com/fr-fr/answers/questions/2132532/microsoft-onedrive-returns-unauthenticated
https://talk.plesk.com/threads/plesk-backup-with-microsoft-onedrive-error.377084/
https://talk.plesk.com/threads/remote-backup-to-microsoft-onedrive-error.376168/post-959181
https://github.com/microsoftgraph/msgraph-sdk-php/issues/1616#issuecomment-2661341757
Bug with plesk and extension Microsoft OneDrive Backups.
Once deleted, and reinstall // reconfigured, the link with Onedrive account is ok for only few seconds.
It's obviously problem from Microsoft Onedrive side.
It disconnectes by itself, error messages :
Unable to create the remote backup: Transport error: Extension transport: ext://one-drive-backup/subscription/1/: Microsoft OneDrive returns the error: Unauthenticated
Warning:
Unable to delete the incomplete remote backup. Error: Failed to exec pmm-ras: Exit code: 129: Transport error: Extension transport: ext://one-drive-backup/subscription/1: Required parameter not passed: "refresh_token"
Please take a look at this. Onedrive is otherwise useless for me.
This issue has been unresolved for so long that OneDrive has effectively ceased to be a viable option.
It looks using 2.x version of the SDK resolves the issue.