Expiration date of thumbnail images in SharePoint

Enomoto, Umi 21 Reputation points
2020-07-28T00:28:19.497+00:00

Hello.
I would like to know about expiration date of thumbnail.

I was using the MS graph API to get the thumbnails of files in SharePoint.
I was able to get the thumbnails successfully, but at some point, I started to get the following error.

{
"error":{
"code": "unauthenticated",
"message": "The access token has expired [ValidTo = 2020年7月8日 11:42:00 UTC]",
"innererror": {
"code": "AccessExpired"
}
}
}

Therefore, I would like to know about the following

1) Does the thumbnail have an expiration date?
2) If there is no expiration date, what is the possible cause of this error?
3) If there is an expiration date, what is the expiration date?
4) If there is an expiration date, is there a way to extend the expiration date?
5) Is there a way to get the thumbnails without being affected by the expiration date?

I will appreciate any kind of help.

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,832 questions
0 comments No comments
{count} votes

Accepted answer
  1. Baker Kong-MSFT 3,801 Reputation points
    2020-07-28T01:46:13.447+00:00

    Hi EnomotoUmi-3783,

    The error msg shows that the access token has expired (ValidTo = 2020年7月8日 11:42:00 UTC). It’s not caused by the thumbnail endpoint, you need to refresh the token or generate a new one.

    Best Regards,
    Baker Kong


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.