【问题标题】:IBM Watson Conversation Starter Kit wlServerHost ErrorIBM Watson Conversation Starter Kit wlServerHost 错误
【发布时间】:2018-02-09 17:32:57
【问题描述】:

我下载了Watson Chatbot Starter Kit 并将对话设置为汽车样本模板。添加所需的凭据和工作区 ID 后,我尝试运行该应用程序。但是它显示以下错误并停止:

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ibm.watson_conversation/com.ibm.watson_conversation.MainActivity}: java.lang.RuntimeException: You must specify the server host (wlServerHost) in the client configuration file (mfpclient.properties).

mfp.client.properties 文件如下,没有为 wlServerHost 设置值。

wlServerProtocol=https
wlServerHost=
wlServerPort=443
wlServerContext=/mfp/
languagePreferences=en

我尝试设置从 ipconfig 获得的 IP 值,在这种情况下,应用程序会运行,但在发送消息时,聊天机器人没有回复,一段时间后显示“连接超时”。我还尝试输入值wlServerHost 作为 localhost 会导致应用停止。

我应该为 wlServerHost 设置什么值?

【问题讨论】:

  • 这将是服务器的主机名/IP。您需要提供服务器的主机名 - IBM MobileFirst Foundation 服务。

标签: android ibm-mobilefirst watson-conversation watson


【解决方案1】:

当您按名称 mfpstartersetup.sh 执行 shell 脚本时,mfpclient.properties 将填充您的 MobileFirst 服务器实例的适当值。

如果您在执行 shell 脚本后没有看到它,您可以导航到您的 Watson Chatbot 工作区并获取您的 MobileFirst 服务器实例的详细信息并手动填写 mfpclient.properties。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-10-05
    • 1970-01-01
    • 1970-01-01
    • 2018-12-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多