IBM / watson-online-store

Learn how to use Watson Assistant and Watson Discovery. This application demonstrates a simple abstraction of a chatbot interacting with a Cloudant NoSQL database, using a Slack UI.
https://developer.ibm.com/patterns/create-cognitive-retail-chatbot/
156 stars 222 forks source link

Traceback with input #176

Closed scottdangelo closed 5 years ago

scottdangelo commented 5 years ago

DEBUG:urllib3.connectionpool:https://gateway.watsonplatform.net:443 "POST /assistant/api/v1/workspaces/8f534f1e-bdc2-4815-8821-398f5788279a/message?version=2018-07-10 HTTP/1.1" 400 160 Traceback (most recent call last): File "run.py", line 184, in watsononlinestore.run() File "/Users/scott/gitRepos/DevPattern/watson-online-store/watsononlinestore/watson_online_store.py", line 838, in run self.handle_conversation(message, sender, user) File "/Users/scott/gitRepos/DevPattern/watson-online-store/watsononlinestore/watson_online_store.py", line 814, in handle_conversation get_input = self.handle_message(message, sender) File "/Users/scott/gitRepos/DevPattern/watson-online-store/watsononlinestore/watson_online_store.py", line 775, in handle_message watson_response = self.get_watson_response(message).get_result() File "/Users/scott/gitRepos/DevPattern/watson-online-store/watsononlinestore/watson_online_store.py", line 515, in get_watson_response context=self.context) File "/usr/local/lib/python2.7/site-packages/watson_developer_cloud/assistant_v1.py", line 179, in message accept_json=True) File "/usr/local/lib/python2.7/site-packages/watson_developer_cloud/watson_service.py", line 479, in request info=error_info, httpResponse=response) watson_developer_cloud.watson_service.WatsonApiException: Error: Invalid Request Body, Code: 400 , Information: {u'errors': [{u'path': u'.input.text', u'message': u'text can not contain the following characters: tab, new line, carriage return.'}]} , X-dp-watson-tran-id: gateway01-19994985 , X-global-transaction-id: 7ecac92c5c11982001311969