I have contacted Microsoft Support about this and received a big fat, time-wasting non-answer.
How do I determine why my Gateway times out intermittently?
{
"error": {
"code": 504,
"source": "flow-apim-msmanaged-na-centralus-01.azure-apim.net",
"clientRequestId": "ed2ee928-d3df-4457-b765-99aeef1f1b2a",
"message": "BadGateway",
"innerError": {
"status": 504,
"message": "The request to the on-premises data gateway has timed out.\r\nclientRequestId: ed2ee928-d3df-4457-b765-99aeef1f1b2a",
"error": {
"message": "The request to the on-premises data gateway has timed out."
},
"source": "filesystem-ncus.azconn-ncus-001.p.azurewebsites.net"
}
}
}