首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Autodesk Forge -扳手样例应用

Autodesk Forge -扳手样例应用
EN

Stack Overflow用户
提问于 2020-03-12 19:30:38
回答 1查看 89关注 0票数 0

有人能帮我吗?我已经在Forge上创建了一个应用程序,并更新了扳手示例中的Client_ID和Client_Secret,可以在这里找到:https://github.com/akenson/da-wrench-config

我正在尝试通过将交互项目设置为启动项目来运行Autodesk Forge - Wrench示例应用程序。当我运行应用程序并选择选项2- Upload data set时,我得到以下错误:

代码语言:javascript
运行
复制
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
EN

回答 1

Stack Overflow用户

发布于 2020-03-13 18:44:35

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

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/60653257

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档