最新消息: 电脑我帮您提供丰富的电脑知识,编程学习,软件下载,win7系统下载。

IBM沃森对话

IT培训 admin 9浏览 0评论

IBM沃森对话

我有与IBM沃森会话应用程序的问题。

我有我的应用程序设置,并尝试将它连接到我的Node.js应用。我在这里按照本教程:.js的API IBM提供。

遗憾的是它不工作,我得到以下错误。

{ Error: Not Authorized
    at Request._callback (/Volumes/hd2/Projekte/vi-com-bot-service/node_modules/watson-developer-cloud/lib/requestwrapper.js:87:15)
    at Request.self.callback (/Volumes/hd2/Projekte/vi-com-bot-service/node_modules/watson-developer-cloud/node_modules/request/request.js:188:22)
    at emitTwo (events.js:106:13)
    at Request.emit (events.js:191:7)
    at Request.<anonymous> (/Volumes/hd2/Projekte/vi-com-bot-service/node_modules/watson-developer-cloud/node_modules/request/request.js:1171:10)
    at emitOne (events.js:96:13)
    at Request.emit (events.js:188:7)
    at IncomingMessage.<anonymous> (/Volumes/hd2/Projekte/vi-com-bot-service/node_modules/watson-developer-cloud/node_modules/request/request.js:1091:12)
    at IncomingMessage.g (events.js:291:16)
    at emitNone (events.js:91:20)
  code: 401,
  error: 'Not Authorized',
  description: '2017-06-01T08:57:57-04:00, Error ERCDPLTFRM-DNLKUPERR occurred when accessing , Tran-Id: gateway-dp01-2475007148 - Invalid UserId and/or Password. Please confirm that your credentials match the end-point you are trying to access. A common error is trying to use credentials from an experimental or beta release against a GA release or vice versa' }

我公司提供的凭据是正确的。

你有什么想法,为什么我不行?最好,本

回答如下:

Bluemix拥有一批在那里你可以承载服务区。有不同的网关到每个区域。默认情况下,它是https://gateway.watsonplatform

对于德国+法国的地区,你会在代码中设置以下URL变量:

url: 'https://gateway-fra.watsonplatform/conversation/api/'

像这样:

var conversation = new ConversationV1({
  username: '<username>',
  password: '<password>',
  url: 'https://gateway-fra.watsonplatform/conversation/api/',
  version_date: ConversationV1.VERSION_DATE_2017_05_26
});

对于其他地区,你可以进入屈臣氏会话业务凭证看到该网址。或交谈工作区“部署”,然后“凭证”一节。

这是链接到沃森助手修订IBM Cloud API包括Node.js的代码示例和网址列表(见“服务端点”)。

IBM沃森对话

我有与IBM沃森会话应用程序的问题。

我有我的应用程序设置,并尝试将它连接到我的Node.js应用。我在这里按照本教程:.js的API IBM提供。

遗憾的是它不工作,我得到以下错误。

{ Error: Not Authorized
    at Request._callback (/Volumes/hd2/Projekte/vi-com-bot-service/node_modules/watson-developer-cloud/lib/requestwrapper.js:87:15)
    at Request.self.callback (/Volumes/hd2/Projekte/vi-com-bot-service/node_modules/watson-developer-cloud/node_modules/request/request.js:188:22)
    at emitTwo (events.js:106:13)
    at Request.emit (events.js:191:7)
    at Request.<anonymous> (/Volumes/hd2/Projekte/vi-com-bot-service/node_modules/watson-developer-cloud/node_modules/request/request.js:1171:10)
    at emitOne (events.js:96:13)
    at Request.emit (events.js:188:7)
    at IncomingMessage.<anonymous> (/Volumes/hd2/Projekte/vi-com-bot-service/node_modules/watson-developer-cloud/node_modules/request/request.js:1091:12)
    at IncomingMessage.g (events.js:291:16)
    at emitNone (events.js:91:20)
  code: 401,
  error: 'Not Authorized',
  description: '2017-06-01T08:57:57-04:00, Error ERCDPLTFRM-DNLKUPERR occurred when accessing , Tran-Id: gateway-dp01-2475007148 - Invalid UserId and/or Password. Please confirm that your credentials match the end-point you are trying to access. A common error is trying to use credentials from an experimental or beta release against a GA release or vice versa' }

我公司提供的凭据是正确的。

你有什么想法,为什么我不行?最好,本

回答如下:

Bluemix拥有一批在那里你可以承载服务区。有不同的网关到每个区域。默认情况下,它是https://gateway.watsonplatform

对于德国+法国的地区,你会在代码中设置以下URL变量:

url: 'https://gateway-fra.watsonplatform/conversation/api/'

像这样:

var conversation = new ConversationV1({
  username: '<username>',
  password: '<password>',
  url: 'https://gateway-fra.watsonplatform/conversation/api/',
  version_date: ConversationV1.VERSION_DATE_2017_05_26
});

对于其他地区,你可以进入屈臣氏会话业务凭证看到该网址。或交谈工作区“部署”,然后“凭证”一节。

这是链接到沃森助手修订IBM Cloud API包括Node.js的代码示例和网址列表(见“服务端点”)。

与本文相关的文章

发布评论

评论列表 (0)

  1. 暂无评论