首页 > 解决方案 > Autodesk Forge 模型衍生 API:TranslationWorker-InternalFailure

问题描述

我正在尝试使用模型衍生 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

解决方案


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

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

推荐阅读