1

我正在尝试在 Bluemix 上使用 IBM Watson 的对话 API,但遇到以下异常。我找不到任何关于如何调试它的文档。

Error:
 "conversation.py", line 14, in <module>
    response = conversation.message(workspace_id=workspace_id, message_input={'text': 'Will you be able to convert an html file?'})
  File "/usr/local/lib/python2.7/dist-packages/watson_developer_cloud/conversation_v1_experimental.py", line 45, in message
    json=data, accept_json=True)
  File "/usr/local/lib/python2.7/dist-packages/watson_developer_cloud/watson_developer_cloud_service.py", line 263, in request
    raise WatsonException(error_message)
watson_developer_cloud.watson_developer_cloud_service.WatsonException: Error: NLU service error: Processing error, Code: 500

我检查了凭据和工作区 ID,它们看起来都很好。任何关于如何调试的想法都将受到高度赞赏。

4

1 回答 1

1

我知道这是一个老问题,但我不想让它无人回答。

正如@jonrsharpe 所说,Error: NLU service error: Processing error, Code: 500这意味着存在服务器端错误。

当您遇到 5XX 错误时,您只能再次尝试请求。

于 2016-08-02T18:03:02.757 回答