我有一个 API,它具有授权和不记名令牌。我在邮递员中进行了测试,它正在工作。但是,当我在 ADF 中使用 Web 活动时,它不起作用。
我在 URL 部分传递 url。创建新标头,输入授权并指定值“Bearer token”
出现以下错误
Error
Troubleshoot activity failures
{
"errorCode": "2108",
"message": "{\"error\":{\"type\":\"invalid_request_error\",\"message\":\"Request forbidden by administrative rules. Please make sure your request has an acceptable User-Agent header.\",\"documentation_url\":\"https://developer.dentally.co\"}}",
"failureType": "UserError",
"target": "Web1",
"details": []
}
有人可以建议吗?
我在我的环境中重现了相同的内容。我用 Postman 成功生成了一个不记名令牌。
为了解决以上问题error code:2200
。请遵循以下方法。
- 将 Web 活动 2 与新创建的 Web1 活动连接
- 添加动态表达式:
Bearer @{activity('Web2').output.data.Token}
Output:
参考:
Ashok Patel 用于测试身份验证的示例 Rest API URL https://www.appsloveworld.com/sample-rest-api-url-for-testing-with-authentication
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)