Skip to content

Getting 409 conflict error with SP REST API v2.1 / Graph API driveItem thumbnail #10164

Open
@michaelmaillot

Description

@michaelmaillot

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

  1. Authenticate to a SharePoint site
  2. 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.

Metadata

Metadata

Assignees

Labels

Needs: Author FeedbackAwaiting response from the original poster of the issue. Marked as stale if no activity for 7 days.sharepoint-developer-supportsharepoint-developer-supporttype:bug-confirmedConfirmed bug, not working as designed / expected.type:bug-suspectedSuspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions