【发布时间】:2017-02-25 23:22:47
【问题描述】:
我正在使用 project-oxford 以便将 Microsoft API 与 nodejs 一起使用。我不断收到错误,
{"code":"Unspecified","message":"Access denied due to invalid subscription key. Make sure you are subscribed to an API you are trying to call and provide the right key."}
{"code":"Unspecified","message":"Access denied due to invalid subscription key. Make sure you are subscribed to an API you are trying to call and provide the right key."}
我还为我的 microsoft 帐户重新生成了订阅密钥并尝试访问该代码。我仍然遇到同样的问题。花了很多时间来修复我的错误,但我无法解决。
这是我的 nodejs 代码,
var oxford = require('project-oxford'),
client = new oxford.Client({SubscriptionKey});
client.video.trackFace({
url: path,
}).then(function (response) {
console.log('Response ' + JSON.stringify(response));
},function (error) {
console.log("Error"+JSON.stringify(error));
});
请指导我解决此问题。提前致谢!
【问题讨论】:
标签: node.js face-recognition microsoft-cognitive