Open
Description
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Developer environment
None
What browser(s) / client(s) have you tested
- 💥 Internet Explorer
- 💥 Microsoft Edge
- 💥 Google Chrome
- 💥 FireFox
- 💥 Safari
- mobile (iOS/iPadOS)
- mobile (Android)
- not applicable
- other (enter in the "Additional environment details" area below)
Additional environment details
- browser version: 130.0.2849.56
Describe the bug / error
When querying the driveItem/thumbnails endpoint (GET request), if I use the "preferNoRedirect=true" query string, I'm getting a 409 conflict error.
Example: https://[SITE].sharepoint.com/sites/[SITE_URL]/_api/v2.1/sites/[SITE_ID],[WEB_ID]/lists/[LIST_ID]/items/[ITEM_ID]/driveItem/thumbnails/0/large/content?preferNoRedirect=true
Error displayed:
{
"error": {
"code": "resourceModified",
"message": "The resource has changed since the caller last read it; usually an eTag mismatch"
}
}
This is something we used without any issue, through PnP Modern Search, for years now, without any trouble or code update. Until recently where we started to face thumbnail display issues.
Here you'll find the issue raised on the PnP Modern Search, facing the same error.
Steps to reproduce
- Authenticate to a SharePoint site
- Try to display the thumbnail of a SharePoint page through the mentioned endpoint with same parameter
Expected behavior
I'm expecting to get a thumbnail for the queried SharePoint page.