SVF POST作业文件转换失败

时间:2016-06-23 07:31:48

标签: autodesk autodesk-forge autodesk-viewer autodesk-model-derivative

我和朋友在这里关注Autodesk Viewer教程: https://developer.autodesk.com/en/docs/viewer/v2/tutorials/basic-viewer/

我们都完成了之前的所有步骤,除了最后一次使用API​​ POST job端点将base64编码urn发送到Model Derivative API以转换为SVF文件, Autodesk的Viewer可能会使用它。

这是我用来发送POST job请求的内容:

curl -X 'POST' -H 'Authorization: Bearer cywr9WWu8kml3rQIVnPDohFDsoRl' -H 
'Content-Type: application/json' -v 'https://developer.api.autodesk.com/modelderivative/v2/designdata/job'
-d '{"input": {"urn": "dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6bXl0ZXN0YnVja2V0dGVzdDIvZ2lyaV9zaXJfY29weTEucnZ0"},
"output": {"formats": [{"type": "svf","views": ["2d","3d"]}]}}'

这是API响应:

{"type":"manifest","hasThumbnail":"false","status":"failed","progress":"complete",
"region":"US","urn":"dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6bXl0ZXN0YnVja2V0dGVzdDIvZ2lyaV9zaXJfY29weTEucnZ0",
"derivatives":[{"name":"giri_sir_copy1.rvt","hasThumbnail":"false","status":"failed",
"progress":"complete","messages":[{"type":"error","code":"Revit-InternalError",
"message":"<message>We have encountered some issues while preparing the file for viewing.
Please contact support for assistance.</message>"},{"type":"error",
"message":"Unrecoverable exit code from extractor: -1073741831",
"code":"TranslationWorker-InternalFailure"}],"outputType":"svf"}]}

非常感谢任何见解。

1 个答案:

答案 0 :(得分:1)

总结对该问题的评论:此处是指向sample runningsource codepostJob function)的链接。

请注意,此示例将文件直接存储在开发者帐户(OSS)下,而不是在用户帐户(数据管理)下,这是一个重要的区别!第一个使用2-legged token,第二个使用3-legged token。数据管理包含一些抽象/元数据来组织文件,如集线器,项目和文件夹,但最终存储在OSS上。根据它的存储方式,您需要不同的令牌/权限来读/写它。