Recently we were getting the below error for one of our Flows.
BadGateway. The request failed. Error code: ‘502’. Error Message: ‘BadGateway’.
Everything seemed right.
Finally, found (thanks to the forum) that the fix was to update the Approvals Administrator security role.
Provide – Read Access to System Job inside Customization tab.
This time our flow worked smoothly.
Hope it helps..