msgraph-sdk-dotnet icon indicating copy to clipboard operation
msgraph-sdk-dotnet copied to clipboard

ListItem Permissions API not working with itemNotFound

Open dev-tony-hu opened this issue 1 year ago • 1 comments

Describe the bug

I'm trying to use Graph beta API to get ListItem permission but got itemNotFound error.

Expected behavior

Works normally

How to reproduce

Use graph explorer or Graph sdk.

SDK Version

No response

Latest version known to work for scenario above?

No response

Known Workarounds

No response

Debug output

Click to expand log ```

Request: https://graph.microsoft.com/beta/sites/xxx.sharepoint.com,ea0ad322-2b3a-4863-a452-79bd4fe29bc9,c656d1d8-ab24-497d-bd4d-6e4b3f79f1f9/lists/b4a0f386-8917-4679-b97f-1d399e1b30b2/items/1d171ea9-57f9-43d6-bd96-a9dd6999c1b5/permissions Authorization: Bearer eyJ0e

Response: Cache-Control: no-store, no-cache Transfer-Encoding: chunked Strict-Transport-Security: max-age=31536000 request-id: 639f513f-77a3-4f78-a136-98eaa3e23687 client-request-id: 639f513f-77a3-4f78-a136-98eaa3e23687 x-ms-ags-diagnostic: {"ServerInfo":{"DataCenter":"Korea Central","Slice":"E","Ring":"4","ScaleUnit":"003","RoleInstance":"SE1PEPF0000C15F"}} Link: https://developer.microsoft-tst.com/en-us/graph/changes?$filterby=beta,Removal&from=2021-09-01&to=2021-10-01;rel="deprecation";type="text/html", https://developer.microsoft-tst.com/en-us/graph/changes?$filterby=beta,Removal&from=2021-09-01&to=2021-10-01;rel="deprecation";type="text/html" Deprecation: Fri, 03 Sep 2021 23:59:59 GMT Sunset: Sun, 01 Oct 2023 23:59:59 GMT Date: Tue, 16 Jul 2024 01:37:42 GMT

{"error":{"code":"itemNotFound","message":"Item not found","innerError":{"date":"2024-07-16T01:37:42","request-id":"639f513f-77a3-4f78-a136-98eaa3e23687","client-request-id":"639f513f-77a3-4f78-a136-98eaa3e23687"}}}

</details>


### Configuration

_No response_

### Other information

_No response_

dev-tony-hu avatar Jul 16 '24 02:07 dev-tony-hu

Seems like the server side issue. I've tried the same endpoint few weeks ago via Graph Explorer and got the same itemNotFound error. I haven't tried POST method, maybe the issue affects only GET method.

MartinM85 avatar Jul 16 '24 05:07 MartinM85