在创建的 WorkItem 中向 Dropbox 请求时下载失败

问题描述 投票:0回答:1

我尝试过 AU 课程使用 Revit 设计自动化在 Forge 查看器中显示 RFA 将 .rfa 文件转换为 .rvt 文件,以便可以通过 Autodesk Platform Services APS(以前称为 Forge)执行。利用通过 Postman 和 Dropbox 存储库的 HTTP 请求下载空的 .rvt 和 .rfa 文件,提交本教程中的 WorkItem,在请求正文中,我使用了 Oath02 类型进行授权以访问 Dropbox API Arg。回复是:

{
    "status": "pending",
    "stats": {
        "timeQueued": "2023-12-26T07:14:25.9899257Z"
    },
    "id": "****"
}

但是请求这个WorkItem的结果时,得到的响应是:

{
    "status": "failedDownload",
    "reportUrl": "****",
    "stats": {
        "timeQueued": "2023-12-26T07:14:25.9899257Z",
        "timeDownloadStarted": "2023-12-26T07:14:26.3170752Z",
        "timeFinished": "2023-12-26T07:14:26.9437548Z"
    },

该结果中reportedUrl的响应体为:

[12/26/2023 08:04:30] Starting work item *****
[12/26/2023 08:04:30] Start download phase.
[12/26/2023 08:04:30] Start downloading input: verb - 'GET', url - 'https://content.dropboxapi.com/2/files/download'
[12/26/2023 08:04:30] Start downloading input: verb - 'GET', url - 'https://content.dropboxapi.com/2/files/download'
[12/26/2023 08:04:30] Error: Failed to prepare app package(s). End of Central Directory record could not be found.
[12/26/2023 08:04:30] Error: Unable to download file from https://content.dropboxapi.com/2/files/download: The operation was canceled..
[12/26/2023 08:04:30] Error: Unable to download file from https://content.dropboxapi.com/2/files/download: The operation was canceled..
[12/26/2023 08:04:30] Error: An unexpected error happened during phase Downloading of job.
[12/26/2023 08:04:31] Job finished with result FailedDownload

我需要提及的是,我一直使用“Forge Postman 教程”来创建 Appbundle,而不是使用 Using Design Automation for Revit for Displaying RFA in the Forge Viewer 中准备的说明。

还需要提及的是,Dropbox 文件可以使用 HTTP 请求下载。所以问题可能出在我使用的 Appbundle 上。之前我使用了使用 Revit 设计自动化在 Forge Viewer 中显示 RFA 上的教程来创建 Appbundle,但没有成功。
我可以为此海豚使用另一个“ContentPackage”吗?如果否,我是否需要创建 Revit 插件,然后将其转换为“ContentPackage”?或者是否有更简单的方法来创建“ContentPackage”以在 Appbunlde 正文中上传?
我是不是错过了什么?

有人可以为我分享他/她在这个项目中的经验吗?
我非常感谢您对这个问题的回答。

autodesk-forge dropbox revit-api autodesk-designautomation app-bundle
1个回答
0
投票
[12/26/2023 08:04:30] Error: Failed to prepare app package(s). End of Central Directory record could not be found

似乎是这个答案的重复。我建议确保您的上传应用程序包步骤准确。

© www.soinside.com 2019 - 2024. All rights reserved.