[英]Webhook validation handshake failed
i'm new in azure and wanted to create an Event subscription to push any changes (here resource write success) from my blob storage to my Logic App via HTTP.我是 azure 的新手,想创建一个事件订阅以通过 HTTP 从我的 blob 存储推送任何更改(此处为资源写入成功)到我的逻辑应用程序。 In my Logic app i have a When a HTTP request is received , which would run when i send a request.在我的逻辑应用程序中,我有一个当收到 HTTP 请求时,它会在我发送请求时运行。
just wanted to demonstrate how i'm trying to create it.只是想展示我是如何尝试创建它的。
NAME: 'i dont think this matters'姓名:“我认为这不重要”
... ...
TOPIC NAME: 'just gave it a Random Name, should this refer to sth?'主题名称:“只是给它一个随机名称,这应该是指某事吗?”
Source Resource:'My Storage Account'来源资源:“我的存储帐户”
ENDPOINT:'i got the URL from the Overview page of my logic app (Workflow URL )' URL looks like this:端点:'我从我的逻辑应用程序的概述页面(工作流 URL)中获得了 URL'URL 看起来像这样:
https://LOGICAPPNAME.azurewebsites.net:443/api/APPNAME/triggers/manual/invoke?api-version=2022-05-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=RjVKZbs-0CV559hZYlFfhM0k22W39lS5
when i copy and paste this to my browser i can trigger my Logic App.当我将其复制并粘贴到我的浏览器时,我可以触发我的逻辑应用程序。 i think that act as a GET and i'm not sure if it sends it as POST or etc. it would make any difference.我认为这可以作为 GET,我不确定它是否以 POST 或其他方式发送。它会有所作为。
and i got this error.我得到了这个错误。
Deployment has failed with the following error: {"code":"Url validation","message":"Webhook validation handshake failed for https://LOGICAPPNAME.azurewebsites.net/api/APPNAME/triggers/manual/invoke . Http POST request retuned 2XX response with response body. When a validation request is accepted without validation code in the response body, Http GET is expected on the validation url included in the validation event(within 10 minutes). For troublehooting, visit https://aka.ms/esvalidation . Activity id:ID, timestamp: DATE TIME"}部署失败,出现以下错误:{"code":"Url validation","message":"https ://LOGICAPPNAME.azurewebsites.net/api/APPNAME/triggers/manual/invoke的 Webhook 验证握手失败。Z9D4D43DE68F0B3555D5A5EF5DC05BB9 request retuned 2XX response with response body. When a validation request is accepted without validation code in the response body, Http GET is expected on the validation url included in the validation event(within 10 minutes). For troublehooting, visit https://aka .ms/esvalidation . 活动 ID:ID,时间戳:DATE TIME"}
If there's still confusion on how i'm doing this, i'm trying to follow THIS EXAMPLE .如果对我如何做到这一点仍然感到困惑,我正在尝试遵循这个示例。 How can i fix this Error?我该如何解决这个错误?
After reproducing from my end, I could able to achieve this following the link you have provided using the below details for creation of my logic app.从我的角度复制后,我可以按照您提供的链接使用以下详细信息创建我的逻辑应用程序来实现此目的。
The reason you are receiving that error is that you need to use Logic App HTTP Trigger Request URL as Web Hook's endpoint and not the Logicapp's URL. The reason you are receiving that error is that you need to use Logic App HTTP Trigger Request URL as Web Hook's endpoint and not the Logicapp's URL.
NOTE: You don't really have to call the Trigger again, whenever you make any changes to your storage account the logic apps gets triggered.注意:您实际上不必再次调用触发器,只要您对存储帐户进行任何更改,就会触发逻辑应用。
RESULTS:结果:
When Blob is Created何时创建 Blob
When a Blob is Deleted删除 Blob 时
REFERENCES: "When blob is added or modified" trigger will not be fired on subfolder" answered by SamaraSoucy-MSFT - Microsoft Q&A参考: “添加或修改 blob 时”触发器不会在子文件夹上触发“由 SamaraSoucy-MSFT 回答 - Microsoft Q&A
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.