【发布时间】:2018-11-12 17:42:43
【问题描述】:
我有一个 nodeJS Web 应用程序,我已经多次部署到法兰克福,突然TextToSpeechV1.synthesize 调用正在返回消息。
"Unauthorized: Access is denied due to invalid credentials." with stack info: "Error: Unauthorized: Access is denied due to invalid credentials.
at Request._callback (/Users/troy/git/WA-for-Auto-WebApp-master/node_modules/watson-developer-cloud/lib/requestwrapper.js:102:21)
at Request.self.callback (/Users/troy/git/WA-for-Auto-WebApp-master/node_modules/request/request.js:185:22)
at Request.emit (events.js:180:13)
at Request.<anonymous> (/Users/troy/git/WA-for-Auto-WebApp-master/node_modules/request/request.js:1157:10)
at Request.emit (events.js:185:15)
at IncomingMessage.<anonymous> (/Users/troy/git/WA-for-Auto-WebApp-master/node_modules/request/request.js:1079:12)
at Object.onceWrapper (events.js:272:13)
at IncomingMessage.emit (events.js:185:15)
at endReadableNT (_stream_readable.js:1106:12)
at process._tickCallback (internal/process/next_tick.js:178:19)"
如果我将 username、password 和 url 切换到为达拉斯地区的同一网络应用程序运行的 TTS,则不会发生这种情况。这是早些时候工作的。 username、password 和 url 来自法兰克福的 TTS 服务,所以我知道它们是正确且有效的。
我尝试在法兰克福创建一个全新的 TTS 服务并使用 iam_apikey,但我只是从 synthesize 调用中返回 null 并在回调中返回的对象返回 null。
我使用的是watson-developer-cloud 3.13.0,但我使用的是3.5.0 没有问题。 3.13.0 和 3.5 的行为相同。
【问题讨论】:
-
感谢您的编辑,下次我会做得更好。 :)
标签: node.js text-to-speech ibm-watson