【问题标题】:Autodesk Forge - Wrench Sample ApplicationAutodesk Forge - 扳手示例应用程序
【发布时间】:2020-06-24 10:53:39
【问题描述】:

谁能帮我解决这个问题,我在 Forge 上创建了一个应用程序,并在此处找到的扳手示例中更新了 Client_ID 和 Client_Secret: https://github.com/akenson/da-wrench-config

我正在尝试通过将交互项目设置为启动项目来运行 Autodesk Forge - Wrench 示例应用程序。 当我运行应用程序并选择选项 2 - 上传数据集 我收到以下错误:

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

【问题讨论】:

    标签: autodesk-forge


    【解决方案1】:

    根据错误消息,未指定客户端 ID(可能还有秘密),我们的客户端 sdk 需要这些来访问 Forge 服务 - 转到 here 将它们设置为环境变量。

    【讨论】:

      猜你喜欢
      • 2021-12-30
      • 2021-01-03
      • 2021-09-08
      • 2018-05-11
      • 2017-03-01
      • 2019-09-12
      • 2020-12-25
      • 2021-01-16
      • 2020-02-20
      相关资源
      最近更新 更多