AZure Logic应用程序SFTP连接器回复504坏网关



有人能帮上忙吗?我正试图用密码连接到SFTP服务器,在使用";当文件被添加或修改时";,我可以在设计模式下查看目录,但当它运行时,来自SFTP服务器的响应似乎不正确,错误为504,如下所示:

"error": {
"code": 504,
"source": "logic-apis-australiasoutheast.azure-apim.net",
"message": "BadGateway",
"innerError": {
"status": 504,
"message": "A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond",
"error": {
"message": "A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond"
},
"source": "sftpwithssh-ase.azconn-ase.p.azurewebsites.net"
}

我可以通过WinSCP或FileZilla连接到SFTP服务器,浏览、下载没有任何问题。如果您遇到此问题并得到解决,请提供帮助。谢谢

对于这个问题,我在下面总结了一些可能的原因供您参考:

1.检查地址是否正确。如果使用主机名,请尝试使用服务器的IP地址而不是主机名。

2.检查服务器的防火墙是否阻止来自逻辑应用程序的请求。检查您的逻辑应用程序的IP是否在服务器防火墙的白名单中。

3.检查您在逻辑应用程序中使用的端口是否被服务器阻止。

我也遇到过同样的问题,但在某种意义上已经克服了。当查看部署模板时,我在触发器下发现了以下内容:

"triggers":{
"recurrence":{
"frequency":"Hour",
"interval":"1"
},
"metadata":{
"L2RhdGEvZGV2L2luL3BhcnRuZXI=" : "['parameters(sftpwithssh_root_folder')]"
  • 根文件夹位于密钥库中
  • Dev是"/data/dev/in/partner">
  • QA是"/data/qa/in/parther">

在部署时,从模板中,元数据属性是根据参数设置的,但NAME("L2RhdGEvZGV2L2luL3BhcnRuZXI="(不是,名称是文件夹的Base64表示形式。(试试看。(因此,如果你将模板部署到QA,你会发现参数和base64名称不匹配。

编辑逻辑应用程序代码并将元数据名称更改为base64编码的QA文件夹("L2RhdGEvcWEvaW4vcGFydG5lcg=="(,保存它,一切都将按预期工作。

最新更新