Status 302 calling graph api

%3CLINGO-SUB%20id%3D%22lingo-sub-1322424%22%20slang%3D%22en-US%22%3EStatus%20302%20calling%20graph%20api%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1322424%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOne%20of%20my%20scheduled%20workflow%20that%20was%20running%20without%20error%20for%20months%20is%20having%20an%20issue%20today.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20is%20a%20SharePoint%20HTTP%20REST%20call%20to%20graph%20api%20to%20get%20the%20content%20of%20a%20page%20thumbnail.%20It%20returns%20a%20status%20302.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20Get%20method%20URI%20is%20something%20like%20this%3A%3C%2FP%3E%3CPRE%3Ehttps%3A%2F%2Fcontoso.sharepoint.com%2F_api%2Fv2.1%2Fsites%2Fcontoso.sharepoint.com%2Cxxxxxx-xxxx-xxxxx-xxxx-xxxxxxxxxxxx%2Cxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx%2Fitems%2Fxxxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx%2FdriveItem%2Fthumbnails%2F0%2Fc400x99999%2Fcontent%3FpreferNoRedirect%3Dtrue%26amp%3Bprefer%3DextendCacheMaxAge%26amp%3BclientType%3DmodernWebPart%3C%2FPRE%3E%3CP%3EThe%20output%20is%20this%3A%3C%2FP%3E%3CPRE%3E%7B%3CBR%20%2F%3E%22status%22%3A%20302%2C%3CBR%20%2F%3E%22message%22%3A%20%22%22%2C%3CBR%20%2F%3E%22source%22%3A%20%22https%3A%2F%2Fcontoso.sharepoint.com%2F_api%2Fv2.1%2Fsites%2Fcontoso.sharepoint.com%2Cxxxxxx-xxxx-xxxxx-xxxx-xxxxxxxxxxxx%2Cxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx%2Fitems%2Fxxxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx%2FdriveItem%2Fthumbnails%2F0%2Fc400x99999%2Fcontent%3FpreferNoRedirect%3Dtrue%26amp%3Bprefer%3DextendCacheMaxAge%26amp%3BclientType%3DmodernWebPart%22%2C%3CBR%20%2F%3E%22errors%22%3A%20%5B%5D%3CBR%20%2F%3E%7D%3C%2FPRE%3E%3CDIV%3E%3CDIV%3E%3CSPAN%3EIf%20I%20take%20the%20source%20URL%20and%20put%20it%20in%20my%20browser%2C%20It%20returns%20the%20thumbnail%20image%20correctly.%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3EPrevioulsy%20the%20SharePoint%20HTTP%20action%20was%20returning%20this%20as%20a%20result%20with%20the%20thumbnail%20image%20content%3A%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CPRE%3E%3CSPAN%3E%7B%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22%24content-type%22%3C%2FSPAN%3E%3CSPAN%3E%3A%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22image%2Fjpeg%22%3C%2FSPAN%3E%3CSPAN%3E%2C%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22%24content%22%3C%2FSPAN%3E%3CSPAN%3E%3A%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22XXXXXXXXXXXXXXXXXXXXX%22%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%3E%7D%3C%2FSPAN%3E%3C%2FPRE%3E%3C%2FDIV%3E%3CP%3E%26nbsp%3BDon't%20understand%20why%20I'm%20starting%20to%20get%20this%20issue%20today.%20Has%20something%20changed%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1322424%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Flow%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPower%20Automate%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Regular 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