Autodesk Forge访问b360集线器以获取项目-错误404 [英] Autodesk Forge accessing b360 hub to get projects - error 404

查看:75
本文介绍了Autodesk Forge访问b360集线器以获取项目-错误404的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用本指南发布项目-

I'm trying to pubhlish a project using this guide - https://forge.autodesk.com/en/docs/data/v2/tutorials/publish-model/

我能够获得预期中心的docs中枢ID(在Autodesk设置b360 docs帐户并设置带有w/forge应用程序的集成后,使用3条腿标记),并将其传递给调用以获取使用本指南的项目(使用相同令牌或新令牌)- https://forge.autodesk.com/en/docs/data/v2/reference/http/hubs-hub_id-projects-GET/

I am able to get the docs hub ID for the expected hub (using 3 legged token, after having Autodesk provision the b360 docs account, and setting up integration w/ forge app), and pass this into the call to get the projects (using same token, or new token) using this guide - https://forge.autodesk.com/en/docs/data/v2/reference/http/hubs-hub_id-projects-GET/

我使用从GET集线器中以b.xxx开头的GET集线器调用中提供的集线器ID来获取响应404错误

I get back a response 404 error using the hub ID provided in the GET hubs call that starts with b.xxx from the GET hubs

{
"developerMessage": "The requested resource does not exist.",
"moreInfo": "https://forge.autodesk.com/en/docs/oauth/v2/developers_guide/error_handling/",
"errorCode": ""
}

我用a尝试过此操作.同样,而不是b.并且在集线器ID上没有前缀,也没有运气.我已验证此ID也与在线帐户管理员设置中显示的ID相符.

I've tried this with a. as well, instead of b. and also no prefix on hub ID with no luck. I verified that this Id matches what is shown in the account admin settings online as well.

get请求看起来像这样,并且包括Bearer {{token}}格式的授权令牌,其中{{token}}是在获取集线器ID时有效的令牌的(相同)变量.

The get request looks like this, and includes authorization token in format Bearer {{token}} where {{token}} is the (same) variable for the token that works when getting hub ID's.

https://developer.api.autodesk.com/project/v1/hubs/b.e3a26052-6b48-4a03-9115-xxxxxxxxxxx/projects

我的格式不正确,还是还有其他问题?

Is my format incorrect, or is there something else going on?

推荐答案

请求看起来不错,包括.集线器ID(必须存在 b.前缀).要检查的一件事是,您用来获取三足式令牌的实际用户是否可以访问该中心内的任何项目.

The request looks ok, incl. the hub ID (the b. prefix must be there). One thing to check for is whether the actual user you're using to obtain the 3-legged token has access to any projects inside this hub.

此外,当您尝试

Also, what happens when you try the GET hubs/:hub_id endpoint? Can you see the hub information or do you get 404 as well?

这篇关于Autodesk Forge访问b360集线器以获取项目-错误404的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆