我正在尝试为Autodesk BIM 360项目创建一个webhook并以此错误结束 - "对于您尝试在"上创建钩子的范围,访问被拒绝。我正在使用 Postman 来测试webhook创建 - 这是我得到的回复 -
{
"hooks": [],
"errors": [
{
"id": "071ec72d-20b5-40c1-9451-ee9cdf573984",
"status": 403,
"code": "FORBIDDEN_ERROR",
"detail": [
"Access denied for the scope <projectId> that you are trying to create hook on"
],
"source": {
"sysType": "adsk.wipprod",
"eventType": "fs.file.added",
"callbackUrl": "http://6bd04cad.ngrok.io/webhooks/bim360",
"scope": {
"folder": "<projectId>"
},
"hookAttribute": null
}
}
]
}
答案 0 :(得分:1)
您传递的范围是什么,您是否遵循本教程?您的钥匙是否已激活试用版?
https://developer.autodesk.com/en/docs/webhooks/v1/tutorials/create-a-hook-data-management/
答案 1 :(得分:0)
由于存在旧的伪造应用程序但未配置Webhook,因此我面临此问题。现在,我已启用它,并且它已修复。
现在,我面临着另一个与拒绝访问相关的问题。这是详细信息-
使用Autodesk forge自定义集成为BIM 360文档创建Webhook。我正在遵循此Webhook API文档https://developer.autodesk.com/en/docs/webhooks/v1/reference/http/systems-system-events-event-hooks-POST/,并且不断收到此答复。
{
“id”: “888134c7-fd22-4676-b907-d8441477dde4",
“status”: 403,
“code”: “FORBIDDEN_ERROR”,
“detail”: [
“Access denied for the scope b.2210c698-4e4b-47d0-b579-f92a969ef365 that you are trying to create hook on”
]
}
答案 2 :(得分:0)
从您的问题来看,您似乎使用了projectId
或hubId
,请确保使用folderId
作为scope
,它应该与{{1 }}