Status 302 calling graph api

Steel Contributor

Hi,

 

One of my scheduled workflow that was running without error for months is having an issue today.

 

It is a SharePoint HTTP REST call to graph api to get the content of a page thumbnail. It returns a status 302.

 

The Get method URI is something like this:

https://contoso.sharepoint.com/_api/v2.1/sites/contoso.sharepoint.com,xxxxxx-xxxx-xxxxx-xxxx-xxxxxxxxxxxx,xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/items/xxxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/driveItem/thumbnails/0/c400x99999/content?preferNoRedirect=true&prefer=extendCacheMaxAge&clientType=modernWebPart

The output is this:

{
"status": 302,
"message": "",
"source": "https://contoso.sharepoint.com/_api/v2.1/sites/contoso.sharepoint.com,xxxxxx-xxxx-xxxxx-xxxx-xxxxxxxxxxxx,xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/items/xxxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/driveItem/thumbnails/0/c400x99999/content?preferNoRedirect=true&prefer=extendCacheMaxAge&clientType=modernWebPart",
"errors": []
}
If I take the source URL and put it in my browser, It returns the thumbnail image correctly.
 
Previoulsy the SharePoint HTTP action was returning this as a result with the thumbnail image content:
 
{
  "$content-type""image/jpeg",
  "$content""XXXXXXXXXXXXXXXXXXXXX"
}

 Don't understand why I'm starting to get this issue today. Has something changed?

 

Thanks.

0 Replies