1

当我尝试将麦克风输入点到其中时,我从 Watson Speech to Text 收到此错误事件。使用基于此 TJBot 代码的 NodeJS 应用程序https://github.com/ibmtjbot/tjbot/tree/master/recipes/conversation

这是我得到的错误对象

=== Watson Speech to Text : An Error has occurred =====
_Event {
  type: 'error',
  isTrusted: false,
  _yaeti: true,
  target: 
   W3CWebSocket {
     _listeners: {},
     addEventListener: [Function: _addEventListener],
     removeEventListener: [Function: _removeEventListener],
     dispatchEvent: [Function: _dispatchEvent],
     _url: 'wss://stream.watsonplatform.net/speech-to-text/api/v1/recognize?model=en-US_BroadbandModel',
     _readyState: 3,
     _protocol: undefined,
     _extensions: '',
     _bufferedAmount: 0,
     _binaryType: 'arraybuffer',
     _connection: undefined,
     _client: 
      WebSocketClient {
        domain: null,
        _events: {},
        _eventsCount: 0,
        _maxListeners: undefined,
        config: [Object],
        _req: null,
        protocols: [],
        origin: null,
        url: [Object],
        secure: true,
        base64nonce: 'XU/MDifsB9QqtrWn4vPFgw==' },
     onerror: [Function],
     onopen: [Function],
     onclose: [Function],
     onmessage: [Function] },
  cancelable: true,
  stopImmediatePropagation

: [功能] } 按+C退出。

这在几个小时前工作正常,但突然停止工作。知道这个错误是什么意思吗?

4

1 回答 1

0

我刚刚发现我的凭据是错误的。似乎在迁移到 DIEGO 期间,VCAP_SERVICES 的凭据被删除或类似的东西。我在 Bluemix 上再次将服务连接到应用程序,并重新创建了凭据

于 2017-01-13T14:55:49.960 回答