无法接收Forge Webhook,或无法使其解雇 [英] Unable to receive Forge webhooks, or unable to get them to fire

查看:63
本文介绍了无法接收Forge Webhook,或无法使其解雇的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在建立一个自动化系统,以通过Forge API转换和可视化3D模型.实际的转换和可视化非常简单,但是跟踪该过程并不是那么简单.

I'm setting up an automated system to convert and visualise 3D models through the Forge APIs. The actual conversion and visualisation is pretty straight forward, but keeping track of the process is not as simple.

Autodesk建议使用Webhooks,但是有关此文档的信息很少.

Autodesk recommends using webhooks, but documentation of this is quite sparse.

我的主要问题是我无法调试webhooks.我没有迹象表明是否已经张贴了一个挂钩.

My main problem is that I'm unable to debug the webhooks. I get no indication to weather a hook has been posted or not.

我已经在堆栈溢出,常见问题解答和文档中阅读了所有类似的问题(除其他外:

I've read all of the similar questions here on stack overflow, in the FAQ and in the documentation (among others: Why is webhook workflow not taken into consideration when creating modelderivative job?).

我正在处理具有'modelId'的模型的转换.并想听事件'extraction.updated'.

I'm processing a conversion for a model with 'modelId'. And want to listen to the events 'extraction.updated'.

我正在用这样的POST注册一个钩子:

I'm registering a hook with a POST like this:

{
    "callbackUrl":"https://my-service.com/callbacks/modelId",
    "scope":{
        "workflow":"modelId"
    }
}

我的工作是这样注册的:

My job is registered like this:

{
    "input":{
        "urn":"{theUrnForTheModel}"
    },
    "output":{
        "formats":[
            {
                "type":"svf",
                "views":[
                    "3d",
                    "2d"
                ]
            }
        ]
    },
    "misc":{
        "workflow":"modelId"
    }
}

从我可以看到的钩子永远不会开火.我没有收到任何错误或指示,表明我的服务器出现故障.

From what I can see the hooks never fire. I don't get any errors or indications that something fail on my server.

创建挂钩时我需要发布 hookAttribute 吗?据记录,这不是强制性的.我是否需要在终端安装一个修复端点,或者可以在网址中包含特定的模型ID?

Am I required to post hookAttribute when creating the hook? This is documented as not mandatory. Am I required to have a fixes endpoint on my end, or is it ok to include the specific model id in the url?

推荐答案

要检查的几点:

  1. POST钩子的响应是什么?应该返回 201
  2. 您的/callbacks/modelId 接受哪个动词?应该接受 POST
  3. 您是否尝试过 extraction.finished 事件?
  1. What's the response on POST hook? Should return 201
  2. Which verb does your /callbacks/modelId accepts? Should accept POST
  3. Have you tried extraction.finished event?

这篇关于无法接收Forge Webhook,或无法使其解雇的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆