wit-ai / pywit

Python library for Wit.ai
Other
1.46k stars 361 forks source link

Wit Not Predicting Actions, Giving "Unknown Action" Error #84

Closed jiajia-z closed 7 years ago

jiajia-z commented 7 years ago

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.

screen shot 2017-03-28 at 11 28 02 am

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.

screen shot 2017-03-28 at 11 23 12 am

Does anyone know what is happening? It had worked well for a long time. Just started to experience the issue recently.

Many thanks!!

jiajia-z commented 7 years ago

Issue solved. Just retrain the story.

elytaphai commented 7 years ago

Wow