autodesk-model-derivative - 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"
}
]
}
解决方案
由于您翻译的是 RVT 而不是存档 (ZIP),因此"compressedUrn": true, "rootFilename": "WILD.rvt"
请从作业请求有效负载中删除(用于存档及其根文件)位:
{
"input": {
"urn": "dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6Zm9yZ2V0ZXN0c3AvV0lMRC5ydnQ="
},
"output": {
"destination": {
"region": "us"
},
"formats": [
{
"type": "svf",
"views": ["2d"]
}]
}
}
推荐阅读
- ruby-on-rails - 生成一个完整的资源路径,仅将最后一个资源提供给路由助手
- driverless-ai - Multilabel classification using H20.ai (Driverless ai)
- python - 使用水平方向python从.txt转换为.csv文件
- python - 如何从熊猫数据框中过滤掉值?
- excel - Excel将数据从一张表复制粘贴到另一张表,状态在表2新列中更新
- bash - 连接一个文本文件中的字符串并使用 bash 命令将其存储在变量中
- java - 可以在.Net Framework 中实现带有 SecureRandom("SHA1PRNG") 的 KeyGenerator 吗?
- css - 如何使用 CSS 在 span 元素中设置 ahref 元素的样式?
- mqtt - Python paho MQTT,即使将消息发送到代理,也不会调用 client.on_publish
- powershell - 根据服务器名称将多个 csv 数据附加到单个 csv 文件