无法从 ADF 副本成功调用逻辑应用 Activity

Unable to Successfully Call Logic App From ADF Copy Activity

我有一个 V.2 ADF 管道,其中有一个副本 activity 调用逻辑应用程序。逻辑应用 returns JSON 通过 HTTP 响应。

调试副本时 activity 我收到错误消息:

{ "errorCode": "2200", "message": "ErrorCode=UserErrorFailedToReadHttpFile,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=The remote server returned an error: (411) Length Required.,Source=Microsoft.DataTransfer.ClientLibrary,''Type=System.Net.WebException,Message=The remote server returned an error: (411) Length Required.,Source=System,'", "failureType": "UserError", "target": "Copy data1" }

目前,在 ADF 复印 Activity 设置的 "Additional Headers" 框中,我有以下设置:

Content-Type: application/json

Content-Length: 0

我已经尝试了输入上述两个参数的所有变体,但错误仍然存​​在。

我可以使用 postman 成功调用逻辑应用程序,仅传递 Content-Type。

我怎样才能克服这个错误?

我完全重现了你的问题:

方法是 POST 但您没有发送任何内容。你可以在请求正文中写一些假数据,这样就可以了。

成功快照: