web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / SFTP connection stoppe...
Power Automate
Unanswered

SFTP connection stopped working

(0) ShareShare
ReportReport
Posted on by

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.

Categories:
  • Gdarmon Outlook Profile Picture
    372 on at

    Hi,

    Based on the error message you provided,
    it seems like the issue is related to the server-side.
    The error message indicates that there is a Bad Gateway error with a 502 status code 1.
    This error can occur when the server is not able to process the request due to an issue with the upstream server.

    You mentioned that you have tried to re-establish the connection and double-checked all the data,
    but the issue persists. It could be possible that there is an issue with the server-side configuration.
    I would recommend checking the server logs to see if there are any errors or issues that could be causing
    the problem.

     

    Gill

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 289

#2
11manish Profile Picture

11manish 282 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 119

Last 30 days Overall leaderboard