asp.net-core - 为什么 Autodesk Forge Model Derivative Webhook 会多次触发?

标签 asp.net-core autodesk-forge autodesk-model-derivative autodesk-webhooks

我正在使用 Autodesk Forge - Model Derivative 服务将 Revit (.rvt) 文件转换为 IFC 和 SVF 格式。为了在这些转换完成时收到通知,我使用 Autodesk 为此创建的 Webhooks 系统设置了一个 Webhook。

现在,当转换完成后,Webhook 会成功向我给定的回调 URL 发送请求,但它会多次执行此操作。甚至它发射的次数也不是恒定的。它在一分钟内触发了两次网络钩子(Hook),然后在十分钟后再次触发。这可能是什么原因?

问题是,第一次 webhook 触发时,我什至无法完全访问已完成的衍生产品(我还无法加载层次结构和属性)。这似乎是 Autodesk 方面的问题,但我想知道是否还有其他人遇到过这个问题。

这是我创建的 webhook,也是我帐户上唯一的一个:

  "links": {
    "next": null
  },
  "data": [
    {
      "hookId": "<<hook id>>",
      "tenant": "jobstarted",
      "callbackUrl": "<<my url>>/callback",
      "createdBy": "2UbAPVbvWGfLAPHWLZD7Mld0bVRpI8aJ",
      "event": "extraction.finished",
      "createdDate": "2019-07-29T09:06:46.971+0000",
      "system": "derivative",
      "creatorType": "Application",
      "status": "active",
      "scope": {
        "workflow": "jobstarted"
      },
      "urn": "<<hook urn>>",
      "__self__": "/systems/derivative/events/extraction.finished/hooks/<<hook id>>"
    }
  ]
}

我期望的是 webhook 仅触发一次,因此我可以相信我可以访问、下载和使用整个衍生品的数据。目前它只是不可靠。

最佳答案

当我们的服务未收到您端对回调的成功响应时,通常会发生此类行为。尝试将回调转移到第三方服务(例如 ngrok)并记录它们以隔离问题。并参见 here了解更多详情:

Webhooks guarantees at least once delivery. When the event occurs, the webhooks service sends a payload to the callback URL as an HTTP POST request. The webhook service expects a 2xx response to the HTTP POST request. The response must be received within 6 seconds. A non-2xx response is considered an error. In the event of an error, the webhook service will retry immediately, in 15 minutes, and 45 minutes thereafter. The webhook service retries for 48 hours and disables the webhook if the callback does not succeed during this time. You may need to reconfigure your webhooks if they are disabled.

关于asp.net-core - 为什么 Autodesk Forge Model Derivative Webhook 会多次触发?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57255302/

相关文章:

bash - 如何在错误时停止Powershell脚本?

javascript - 只需在 PDF 文件的二维图纸 View (左面板)中单击两次,就会在 Autodesk 查看器中显示它们

asp.net-mvc - aspnetcore.dll 无法加载

c# - 模拟 ASP Net Core GetService<T>

asp.net-core - 包 Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation 5.0.0 与 netcoreapp3.1 不兼容

autodesk-forge - Forge Viewer 中模型的位置/方向

google-app-engine - Google App Engine 上的 NodeJS Forge 查看器错误

node.js - SVF 模型衍生品下载为(几乎)空的 ZIP 文件 (Autodesk Forge)

javascript - Autodesk Forge 查看器仅呈现 PDF 文件的单页

javascript - Autodesk Forge API createBucket 不起作用