【发布时间】:2021-06-13 10:15:31
【问题描述】:
我正在使用 Autodesk Revit,并且一直在尝试实现设计自动化 API。我已经成功地尝试了示例,修改您的模型教程,其中更改了窗口的尺寸。但是,示例代码不再完美执行,它显示内部服务器错误消息(错误代码 500)。错误控制台声称 workItem 中的某些参数丢失。该代码在 3 月 14 日早上再次运行,但到中午它开始显示相同的错误。 网页和控制台的错误日志分别如下。 我的问题是,Autodesk OSS 服务器是否已经关闭了一段时间,还是我这边出了问题?请帮帮我。 附言相同的代码以前可以完美运行。我没有编辑任何东西。是的,我确实尝试过更改客户端 ID 和客户端密码,并且每 2 小时更新一次 ngrok 地址。
真诚的
错误列表
-Failed to load resource: the server responded with a status of 500 (Internal Server Error)
-No webpage was found for the web address: http://localhost:3000/api/forge/designautomation/workitems
调试器出错
-fail: Microsoft.AspNetCore.Server.Kestrel[13]
Connection id "0HM76OJJ532MV", Request id "0HM76OJJ532MV:00000002": An unhandled exception was thrown by the application.
System.Net.Http.HttpRequestException: The server returned the non-success status code 400 (Bad Request).
更多错误详情:
{
"url": [
"Error converting value \"http://aa025317d1f2.ngrok.io /api/forge/callback/designautomation?id=76m1z2sw7uQi-jtAYzYvgA&outputFileName=20210314024133_output_revit_sample_file.rvt\" to type 'System.Uri'. Path 'url', line 1, position 2376."
],
"workItem": [
"A value for the 'workItem' parameter or property was not provided."
]
}
【问题讨论】:
-
“aa025317d1f2.ngrok.io/api/forge/callback/designautomation”中好像有空格
标签: autodesk-forge revit-api autodesk-designautomation