Hey,
Recently I've experienced unexpected behaviour of SFTP connector. I had few Power Automate workflows which are using connection to AWS Transfer Family (SFTP). The workflows were working correctly until week or two ago, when all the connections failed with Bad Gateway. I have tried to re-establish connection with help of various topics in this forum but nothing seemed to work.
I've doublecheck all data and rotated the public and private keys but all the time I'm receiving Bad Gateway. URL is valid, encryption keys are RSA in OpenSSL format (as used before), username and ports are also correct. I'm even able to connect from my local machine to SFTP server by using above authorisation methods but SFTP connector is not able to establish connection.
Does anybody have a clue what might happen? Maybe something changed on Power Automate site regarding the form of private key? I haven't noticed anything in the Microsoft's documentation that could help me.
I've retrieved the data from error message and it states:
{
"statusCode": 502,
"headers": {
"Cache-Control": "no-store, no-cache",
"Pragma": "no-cache",
"Set-Cookie": "#REDACTED#",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"x-ms-datasourceerror": "True",
"x-ms-request-id": "#REDACTED#",
"X-Content-Type-Options": "nosniff",
"X-Frame-Options": "DENY",
"Timing-Allow-Origin": "*",
"x-ms-apihub-cached-response": "true",
"x-ms-apihub-obo": "false",
"Date": "Wed, 15 Nov 2023 14:02:16 GMT",
"Content-Length": "531",
"Content-Type": "application/json",
"Expires": "-1"
},
"body": {
"error": {
"code": 502,
"source": "asia-001.azure-apim.net",
"clientRequestId": "#REDACTED#",
"message": "BadGateway",
"innerError": {
"status": 502,
"message": "An established connection was aborted by the server.\r\nclientRequestId: #REDACTED#",
"error": {
"message": "An established connection was aborted by the server."
},
"source": "sftpwithssh-sea.azconn-sea-001.p.azurewebsites.net"
}
}
}
}502 is wired here as it would indicate that something is wrong with the server, but it wasn't changed since long time and the workflows used to work. Additionally, as I stated before, I'm able to log into SFTP on AWS side from other machines by using the same configuration with asymmetric encryption as authorisation methods.
I would be super grateful to anyone who could help me with this matter.

Report
All responses (
Answers (