作业发布阶段

时间:2020-10-15 06:05:50

标签: autodesk-forge

我正在尝试将ForgeApp与Revit一起使用。同样,我试图执行Postman的工作项。在执行过程中,我遇到错误。

An unexpected error happened during phase Publishing of job.

实际报告的一部分(在删除了一些敏感信息之后)如下:

[10/15/2020 05:45:24] Finished running.  Process will return: Success
[10/15/2020 05:45:24] ====== Revit finished running: revitcoreconsole ======
[10/15/2020 05:45:25] End Revit Core Engine standard output dump.
[10/15/2020 05:45:25] End script phase.
[10/15/2020 05:45:25] Start upload phase.
[10/15/2020 05:45:25] Error: Non-optional output [result.json] is missing.
[10/15/2020 05:45:25] Error: An unexpected error happened during phase Publishing of job.
[10/15/2020 05:45:25] Job finished with result FailedMissingOutput
[10/15/2020 05:45:25] Job Status:

从该错误可以很明显地看出,插件处理失败,但是它给出了很多有关失败原因的想法。收到此错误后,我尝试通过遵循https://forge.autodesk.com/blog/design-automation-debug-revit-plugin-locally

在本地进行调试

但是在调试过程中,执行插件本身时失败并显示以下错误。它执行Onstartup时没有任何问题,但是此后它就不会进入HandleDesignAutomationReadyEvent

Managed Debugging Assistant 'FatalExecutionEngineError' : 'The runtime has encountered a fatal error. The address of the error was at 0xdb9b8a8d, on thread 0x3784*

因此,我不确定该如何解决。如果我可以使用Debugger或Postman在Local上以某种方式使它工作,那么它将有所帮助。

1 个答案:

答案 0 :(得分:1)

进一步更新-我现在已经找到了根本原因。即使它抱怨缺少输出文件,使我相信代码运行不正常,但真正的根本原因是没有从inputFile参数中找到模型。一旦我尝试将Console.Write插入插件代码,然后调试变得很容易,这一点就变得很清楚。我不确定控制台最初是否会打印在输出中,因此首先会关闭调试日志。但是由于我没有其他方法可以进行冗长的日志记录,因此我进行了大量的Console编写,现在知道了根本原因。谢谢