Hello,
I created a flow that copies a file to a different sharepoint site using the rest api. But when I run the flow I see 8 retries occurred and the flow keeps running and retrying untill I cancel the flow. I only see BadGateway at the status. No further information:

The flow has a manually trigger. The http request looks like this

How can I fix this?
Or is there an other way to copy files between sharepoint sites while keeping the version history?