Current site image getpreview.ashx url response 500 error
What type of issue is this?
Question Bug
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Target SharePoint environment
SharePoint Online
What browser(s) / client(s) have you tested
- [ ] 💥 Internet Explorer
- [ ] 💥 Microsoft Edge
- [X] 💥 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
- SPFx version
- Node.js version
- etc
Issue description
I have an image in Shared Documents list. But the request of the get preview return the 500 response. And not all images have such problems. The preview url is https://{mytenant}.sharepoint.com/sites/{mysite}/_layouts/15/getpreview.ashx?path=%2Fsites%2F{mysite}%2FShared%2520Documents%2F75303Checkmate-in-a-chess-game.jpg&resolution=3

But when I request the preview url with the root site url, it works well, like https://{mytenant}.sharepoint.com/_layouts/15/getpreview.ashx?path=%2Fsites%2F{mysite}%2FShared%2520Documents%2F75303Checkmate-in-a-chess-game.jpg&resolution=3

I'm very curious about the cause of the problem, any update will be very helpful. Thanks!
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
Additaion: The image stored in the SiteAssets list can be previewed by the current site preview url like: https://{mytenant}.sharepoint.com/_layouts/15/getpreview.ashx?path=%2Fsites%2F{mysite}%2FSiteAssets%2FSitePages%2Ftest%2F75303Checkmate-in-a-chess-game.jpg
Anything Update?
Thank you for taking the time to file an issue. We periodically archive older or inactive issues as part of our issue management process, which automatically closes them once they are archived.
If you’d like to understand more about why and how we handle archived (closed) issues, please see Our approach to closed issues.
We appreciate your contribution and if this is still an active issue with the latest SPFx versions, please do resubmit the details. We needed to perform a cleanup, so that we can start with a clean table with a new process. We apologize for the inconvenience this might cause.