Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/multithreading/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ibm cloud 从Watson对话API获取org.springframework.expression.spel.SpelParseException错误_Ibm Cloud_Ibm Watson_Watson Conversation - Fatal编程技术网

Ibm cloud 从Watson对话API获取org.springframework.expression.spel.SpelParseException错误

Ibm cloud 从Watson对话API获取org.springframework.expression.spel.SpelParseException错误,ibm-cloud,ibm-watson,watson-conversation,Ibm Cloud,Ibm Watson,Watson Conversation,我正在使用pypi:Watson开发者云上提供的pythonapi客户端尝试Watson提供的对话API服务 当我发出请求时,我得到以下错误: "output": { "text": [], "error": "Error when updating output with output of dialog node id:node_3_1470064336636. Fix the dialog node. Node output was:{\"text\":\"El monto

我正在使用pypi:Watson开发者云上提供的pythonapi客户端尝试Watson提供的对话API服务

当我发出请求时,我得到以下错误:

"output": {
    "text": [],
    "error": "Error when updating output with output of dialog node id:node_3_1470064336636. Fix the dialog node. Node output was:{\"text\":\"El monto que te puedo adelantar lo define el sistema seg\u00fan el an\u00e1lisis que realiza de tu figura crediticia. El primer adelanto ser\u00e1 de hasta $2000 y mientras vayas cumpliendo en tiempo y forma, se ir\u00e1 aumentando el monto que el sistema te ofrece, siendo $4000 el m\u00e1ximo. Si quer\u00e9s saber el monto exacto que puedo otorgarte, registrate o acced\u00e9 a tu cuenta y hac\u00e9 click en la opci\u00f3n \\\"Ped\u00ed un Adelanto\\\".\"}\n**org.springframework.expression.spel.SpelParseException**: EL1049E:(pos 8): Unexpected data after '.': '2000'\n"
西班牙文答复如下:

{
  "output": {
    "text": "El monto que te puedo adelantar lo define el sistema según el análisis que realiza de tu figura crediticia. El primer adelanto será de hasta $2000 y mientras vayas cumpliendo en tiempo y forma, se irá aumentando el monto que el sistema te ofrece, siendo $4000 el máximo. Si querés saber el monto exacto que puedo otorgarte, registrate o accedé a tu cuenta y hacé click en la opción \"Pedí un Adelanto\"."
  }
}

在Watson对话工作区的右上角的对话框图标上测试机器人时,我也会遇到同样的错误。有没有办法解决这个问题?我应该转义输入的某些部分吗?

正如Emiliano在一篇评论中提到的,美元符号是一个引入上下文变量引用的字符。因此,对话试图查找变量$2000的值。你需要避开那些引用。因此,您需要指定\\$2000。您需要使用双反斜杠,因为字符串实际上在封面下的引号内。

在使用Simple Watson Response editor时,我可以使用单个\字符转义中描述的大多数特殊字符。例如,\$2000、\$ftw和\@8pm

如果您使用的是高级Watson响应编辑器,则需要使用双\\字符。因此,对于上述相同的示例,\\\$2000、\\\ftw和\\@8pm


不幸的是,我未能成功地避开用于更复杂表达式的选项,尽管希望这些选项不太可能导致问题?

问题似乎是“$chars”。我将te文本改为“4000美元”,效果很好!。不确定,但可能只是猜测sintax$char是指变量,因为$2000不是变量,所以会出现错误。谢谢@CharlesRankin