sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

Current site image getpreview.ashx url response 500 error

Open cookie9052 opened this issue 5 years ago • 4 comments

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

image

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

image

I'm very curious about the cause of the problem, any update will be very helpful. Thanks!

cookie9052 avatar Nov 16 '21 06:11 cookie9052

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

ghost avatar Nov 16 '21 06:11 ghost

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

cookie9052 avatar Nov 16 '21 07:11 cookie9052

Anything Update?

cookie9052 avatar Nov 29 '21 07:11 cookie9052

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.

github-actions[bot] avatar May 02 '25 15:05 github-actions[bot]