Autodesk-designautomation:内部服务器错误(错误代码 500):WorkItem 中缺少参数
Autodesk-designautomation: Internal Server Error(Error Code 500): Missing parameter in WorkItem
我正在使用 Autodesk Revit 并一直在尝试实施设计自动化 API。我已成功尝试修改您的模型示例教程,其中更改了 window 的尺寸。然而,示例代码不再完美执行,它显示内部服务器错误消息(错误代码 500)。错误控制台声称缺少 workItem 中的某些参数。该代码在 3 月 14 日早上再次运行,但到了中午它开始显示相同的错误。 网页和控制台的错误日志分别如下。
我的问题是,Autodesk OSS 服务器已经关闭一段时间了还是我这边有问题?请帮帮我。
P.S。相同的代码以前工作得很好。我没有编辑任何东西。是的,我确实尝试过更改客户端 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."
]
}
正如评论中所建议的那样,ngrok
url 中有一个 space 发布到工作项:
http://aa025317d1f2.ngrok.io /api/forge/callback/designautomation?id=76m1z2sw7uQi-jtAYzYvgA&outputFileName=20210314024133_output_revit_sample_file.rvt
我正在使用 Autodesk Revit 并一直在尝试实施设计自动化 API。我已成功尝试修改您的模型示例教程,其中更改了 window 的尺寸。然而,示例代码不再完美执行,它显示内部服务器错误消息(错误代码 500)。错误控制台声称缺少 workItem 中的某些参数。该代码在 3 月 14 日早上再次运行,但到了中午它开始显示相同的错误。 网页和控制台的错误日志分别如下。 我的问题是,Autodesk OSS 服务器已经关闭一段时间了还是我这边有问题?请帮帮我。 P.S。相同的代码以前工作得很好。我没有编辑任何东西。是的,我确实尝试过更改客户端 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."
]
}
正如评论中所建议的那样,ngrok
url 中有一个 space 发布到工作项:
http://aa025317d1f2.ngrok.io /api/forge/callback/designautomation?id=76m1z2sw7uQi-jtAYzYvgA&outputFileName=20210314024133_output_revit_sample_file.rvt