Basically if the user selects "Ask questions", the bot is supposed to decide whether it should take the question or not.
However, my app does not execute the "receiveAction" action and gives the following error:
_Traceback (most recent call last):
File "simpletest.py", line 513, in
client.interactive()
File "/Users/Jiajia/.virtualenvs/test-bot/lib/python2.7/site-packages/wit/wit.py", line 210, in interactive
context = self.run_actions(session_id, message, context, max_steps)
File "/Users/Jiajia/.virtualenvs/test-bot/lib/python2.7/site-packages/wit/wit.py", line 176, in run_actions
context, max_steps, verbose)
File "/Users/Jiajia/.virtualenvs/test-bot/lib/python2.7/site-packages/wit/wit.py", line 149, in __run_actions
self.throw_if_action_missing(action)
File "/Users/Jiajia/.virtualenvs/test-bot/lib/python2.7/site-packages/wit/wit.py", line 214, in throw_if_action_missing
raise WitError('unknown action: ' + actionname)
TypeError: cannot concatenate 'str' and 'NoneType' objects
When I check the logs on Wit, it seems that wit predicts an action named "action", which does not exist in my story.
Does anyone know what is happening? It had worked well for a long time. Just started to experience the issue recently.
Link to my app: https://wit.ai/jiajiazhang/Gooroo/stories
Basically if the user selects "Ask questions", the bot is supposed to decide whether it should take the question or not.
However, my app does not execute the "receiveAction" action and gives the following error: _Traceback (most recent call last): File "simpletest.py", line 513, in
client.interactive()
File "/Users/Jiajia/.virtualenvs/test-bot/lib/python2.7/site-packages/wit/wit.py", line 210, in interactive
context = self.run_actions(session_id, message, context, max_steps)
File "/Users/Jiajia/.virtualenvs/test-bot/lib/python2.7/site-packages/wit/wit.py", line 176, in run_actions
context, max_steps, verbose)
File "/Users/Jiajia/.virtualenvs/test-bot/lib/python2.7/site-packages/wit/wit.py", line 149, in __run_actions
self.throw_if_action_missing(action)
File "/Users/Jiajia/.virtualenvs/test-bot/lib/python2.7/site-packages/wit/wit.py", line 214, in throw_if_action_missing
raise WitError('unknown action: ' + actionname)
TypeError: cannot concatenate 'str' and 'NoneType' objects
When I check the logs on Wit, it seems that wit predicts an action named "action", which does not exist in my story.
Does anyone know what is happening? It had worked well for a long time. Just started to experience the issue recently.
Many thanks!!