【问题标题】:Autodesk Forge Model Derivative API: TranslationWorker-InternalFailureAutodesk Forge 模型衍生 API:TranslationWorker-InternalFailure
【发布时间】:2020-05-27 12:47:17
【问题描述】:

我正在尝试使用模型衍生 forge api 使用以下调用将 .rvt 文件转换为 svf。我正在上传单个 rvt 文件并且文件没有损坏

POST /modelderivative/v2/designdata/job HTTP/1.1
Host: developer.api.autodesk.com
Authorization: Bearer 
Content-Type: application/json; charset=utf-8
x-ads-force: true
Cache-Control: no-cache
Postman-Token: a05c2308-6b4f-7a3f-57b0-2916f25d0157

{
    "input": {
        "urn": "dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6Zm9yZ2V0ZXN0c3AvV0lMRC5ydnQ=",
        "compressedUrn": true,
        "rootFilename": "WILD.rvt"
    },
    "output": {
        "destination": {
            "region": "us"
        },
        "formats": [
        {
            "type": "svf", 
            "views": ["2d"]
        }]
    }
}

这是我得到的回复。不知道出了什么问题。请帮忙

{
    "type": "manifest",
    "hasThumbnail": "false",
    "status": "failed",
    "progress": "complete",
    "region": "US",
    "urn": "dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6Zm9yZ2V0ZXN0c3AvV0lMRC5ydnQ",
    "version": "1.0",
    "derivatives": [
        {
            "name": "LMV Bubble",
            "hasThumbnail": "false",
            "status": "failed",
            "progress": "complete",
            "messages": [
                {
                    "type": "error",
                    "message": "Tr worker fail to download.",
                    "code": "TranslationWorker-InternalFailure"
                }
            ],
            "outputType": "svf"
        }
    ]
}

【问题讨论】:

    标签: autodesk-model-derivative


    【解决方案1】:

    由于您翻译的是 RVT 而不是存档 (ZIP),因此请从您的作业请求负载中删除 "compressedUrn": true, "rootFilename": "WILD.rvt"(用于存档及其根文件)位:

    {
        "input": {
            "urn": "dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6Zm9yZ2V0ZXN0c3AvV0lMRC5ydnQ="
        },
        "output": {
            "destination": {
                "region": "us"
            },
            "formats": [
            {
                "type": "svf", 
                "views": ["2d"]
            }]
        }
    }
    

    【讨论】:

      猜你喜欢
      • 2021-12-31
      • 2021-03-09
      • 2020-11-10
      • 2018-06-23
      • 2016-12-15
      • 2017-10-02
      • 2017-12-06
      • 2021-04-10
      • 2021-06-02
      相关资源
      最近更新 更多