尝试将Luis与Bot Builder集成(VS CODE)

时间:2018-11-22 04:27:30

标签: javascript node.js json

var request = require('request');

var LUISurl = 'luisurl'

request(LUISurl,function(error,response,body){

    console.log(body);
    var data=JSON.parse(body);
    var intent=data.topScoringIntent.intent;
    console.log(intent);
})

我使用上面的代码从luis应用程序获取意图,但在package.json中出现错误,因为:加载引用'https://schemastore.azurewebsites.net/schemas/json/package.json'时出现问题:无法从'https://schemastore.azurewebsites.net/schemas/json/package.json'加载架构:无法连接到https://schemastore.azurewebsites.net/schemas/json/package.json。错误:getaddrinfo EAI_AGAIN schemastore.azurewebsites.net:443

有人可以帮我解决吗?

0 个答案:

没有答案