I'm trying to get the image attachment from CRM Note entity and resize the image, but the flow is getting the BadGateway error when running resize. please see the below information. Please help


Body
{
"error": {
"code": 502,
"source": "australia-001.azure-apim.net",
"clientRequestId": "b1eaf79a-269f-4043-92a8-f99ac87f6578",
"message": "BadGateway",
"innerError": {
"HttpStatusCode": 500,
"HttpStatusMessage": "An error occurred processing the request",
"OperationId": null,
"Errors": [
"An error occurred executing the specified image resize operation."
],
"Operation Status": "Error",
"Filename": null,
"FileContent": null
}
}
}
Header
{
"Request-Context": "appId=cid-v1:4f24fb98-845b-4c7d-8f1e-e629ebb10cb5",
"api-supported-versions": "1.0",
"X-Azure-Ref": "0s4NsXwAAAABPGO1xifeZQqRvP4Afg9q3TUVMMDFFREdFMDEyMQAzOTcwZDFlNS1kODBiLTQ2NWEtYjM1Yi0wNzBjMDE2ZWU0NzI=",
"Timing-Allow-Origin": "*",
"x-ms-apihub-cached-response": "true",
"Date": "Thu, 24 Sep 2020 11:32:05 GMT",
"X-Powered-By": "ASP.NET",
"Content-Length": "534",
"Content-Type": "application/json"
}