有人能帮我吗?我已经在Forge上创建了一个应用程序,并更新了扳手示例中的Client_ID和Client_Secret,可以在这里找到:https://github.com/akenson/da-wrench-config
我正在尝试通过将交互项目设置为启动项目来运行Autodesk Forge - Wrench示例应用程序。当我运行应用程序并选择选项2- Upload data set时,我得到以下错误:
Running 'Upload data set'
Autodesk.Forge.Client.ApiException: Missing required parameter 'clientId' when calling TwoLeggedApi->Authenticate
at Autodesk.Forge.TwoLeggedApi.AuthenticateAsyncWithHttpInfo(String clientId, String clientSecret, String grantType, Scope[] scope)
at Autodesk.Forge.TwoLeggedApi.AuthenticateAsync(String clientId, String clientSecret, String grantType, Scope[] scope)
at Interaction.OAuthController.Get2LeggedTokenAsync(Scope[] scopes) in C:\Users\ian_w\Desktop\da-wrench-config-master\DaWrenchConfig\Interaction\Publisher.cs:line 344
at Interaction.OAuthController.GetInternalAsync() in C:\Users\ian_w\Desktop\da-wrench-config-master\DaWrenchConfig\Interaction\Publisher.cs:line 330
at Interaction.Publisher.UploadDataSetAsync() in C:\Users\ian_w\Desktop\da-wrench-config-master\DaWrenchConfig\Interaction\Publisher.cs:line 224
at Interaction.Program.RunCommand(Publisher publisher, String commandIndex) in C:\Users\ian_w\Desktop\da-wrench-config-master\DaWrenchConfig\Interaction\Program.cs:line 87
at Interaction.Program.RunLoop(Publisher publisher) in C:\Users\ian_w\Desktop\da-wrench-config-master\DaWrenchConfig\Interaction\Program.cs:line 75
at Interaction.Program.Main(String[] args) in C:\Users\ian_w\Desktop\da-wrench-config-master\DaWrenchConfig\Interaction\Program.cs:line 44发布于 2020-03-13 18:44:35
根据错误消息,没有指定客户端id (可能还有机密),而我们的client sdk需要这些id来访问Forge服务- go here来将它们设置为环境变量。
https://stackoverflow.com/questions/60653257
复制相似问题