'Azure Logic App giving Bad Gateway error when connecting with SFTP server

I am trying to create Logic App using SFTP connector that triggers when a file is uploaded to server. While establishing a connection with SFTP server using Password authentication I am getting the error "BadGateway More diagnostic information: x-ms-client-request-id is".Any ideas why I may be getting this error ? Please tell me the correct fields to enter the values. I have the following details account = ac240522; password = ****; server = mft.company.com; protocol = sftp/1234; path = /folder/download. With the same credentials I was able to connect from File Zilla New SFTP Connection



Solution 1:[1]

  1. Try changing the retry policy of SFTP connection and check the action count of retries
  2. check the connectivity issues, run a network trace on your firewall and SFTP server.
  3. Check the connection problem is from Logic app end or SFTP end.
  4. usually band gateway issues are associated with whitelisting of managed connectors IP

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 SaiSakethGuduru-MT