Issue:-
Power automate flow intermittently failing at create file action with error
DownloadAttatchmentV1.Run failed: { "error": { "code": 502, "source": "5c245fb8-1571-e797-ba33-db69905a6411.08.common.usa002.azure-apihub.net", "clientRequestId": "13290e7e-8f54-4aaf-8fc1-24467a283a4b", "message": "BadGateway", "innerError": { "error": { "code": "NoResponse", "message": "The server did not receive a response from an upstream server. Request tracking id '08584278665633826531642938024CU15'." } } } }.
I have checked the below things already :-
+++ Checked SharePoint site is connected or not.
+++ Tried in different browsers still facing the same issue
+++ It is happening with all the files types, jpg, png, pdf
+++ Collected network traces for both successful and failed run


Backend telemetry:
For the Failed Run
+++ From the network trace, we can see that the invoke call for the flow is failed with 502 error.

If we look at the response for this call, we can see that there is no response from server.

Since the call is going through APIM, Checked the APIM logs using the client request id.
or the Failed Run
From the network trace, we can see that the invoke call for the flow is failed with 502 erro
If we look at the response for this call, we can see that there is no response from server.