-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New action creation fails in rasa interactive #9977
Comments
@tayfun can this be closed? |
@TyDunn Not yet, I mentioned it in the other ticket (for intents, this one for actions) because this is also in |
This does work for new custom actions on main/3.0.0rc2 for the record. However, there is this misleading log which looks like an error until you read carefully:
Should I create a separate issue for this or is it part of this one? For new responses ( |
h3. Rasa Open Source version
2.8.12
h3. Rasa SDK version
No response
h3. Rasa X version
No response
h3. Python version
3.8
h3. What operating system are you using?
OSX
h3. What happened?
A new action creation in
rasa interactive
fails with errors:? What is the next action of the bot?
? Please type the action name: utter_uk ? Please type the message for your new bot response 'utter_uk': London is in the UK. Thanks! The bot will now run utter_uk. 2021-10-25 16:54:44 DEBUG rasa.core.lock_store - Issuing ticket for conversation '63f3066b6866454ca6d9f2a1d3abe23b'. 2021-10-25 16:54:44 DEBUG rasa.core.lock_store - Acquiring lock for conversation '63f3066b6866454ca6d9f2a1d3abe23b'. 2021-10-25 16:54:44 DEBUG rasa.core.lock_store - Acquired lock for conversation '63f3066b6866454ca6d9f2a1d3abe23b'. 2021-10-25 16:54:44 DEBUG rasa.core.tracker_store - Recreating tracker for id '63f3066b6866454ca6d9f2a1d3abe23b' 2021-10-25 16:54:44 DEBUG rasa.core.lock_store - Deleted lock for conversation '63f3066b6866454ca6d9f2a1d3abe23b'. 2021-10-25 16:54:44 DEBUG rasa.server - Traceback (most recent call last): File "/Users/tayfun/w/rasa/rasa/shared/core/domain.py", line 932, in index_for_action return self.action_names_or_texts.index(action_name) ValueError: 'utter_uk' is not in list During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/tayfun/w/rasa/rasa/server.py", line 902, in execute_action await app.agent.execute_action( File "/Users/tayfun/w/rasa/rasa/core/agent.py", line 610, in execute_action prediction = PolicyPrediction.for_action_name( File "/Users/tayfun/w/rasa/rasa/core/policies/policy.py", line 554, in for_action_name probabilities = confidence_scores_for(action_name, confidence, domain) File "/Users/tayfun/w/rasa/rasa/core/policies/policy.py", line 619, in confidence_scores_for idx = domain.index_for_action(action_name) File "/Users/tayfun/w/rasa/rasa/shared/core/domain.py", line 934, in index_for_action self.raise_action_not_found_exception(action_name) File "/Users/tayfun/w/rasa/rasa/shared/core/domain.py", line 948, in raise_action_not_found_exception raise ActionNotFoundException( rasa.shared.core.domain.ActionNotFoundException: Cannot access action 'utter_uk', as that name is not a registered action for this domain. Subsequently when you exit the interactive shell, you'll find that domain file cannot be exported to yaml file: 2021-10-25 16:55:04 ERROR rasa.core.training.interactive - An exception occurred while recording messages. Traceback (most recent call last): File "/Users/tayfun/w/rasa/rasa/core/training/interactive.py", line 1516, in record_messages await _enter_user_message(conversation_id, endpoint) File "/Users/tayfun/w/rasa/rasa/core/training/interactive.py", line 1354, in _enter_user_message message = await _ask_questions(question, conversation_id, endpoint, lambda a: not a) File "/Users/tayfun/w/rasa/rasa/core/training/interactive.py", line 325, in _ask_questions should_retry = await _ask_if_quit(conversation_id, endpoint) File "/Users/tayfun/w/rasa/rasa/core/training/interactive.py", line 651, in _ask_if_quit await _write_data_to_file(conversation_id, endpoint) File "/Users/tayfun/w/rasa/rasa/core/training/interactive.py", line 628, in _write_data_to_file _retry_on_error(_write_domain_to_file, domain_path, events, domain) File "/Users/tayfun/w/rasa/rasa/core/training/interactive.py", line 605, in _retry_on_error return func(export_path, *args, **kwargs) File "/Users/tayfun/w/rasa/rasa/core/training/interactive.py", line 959, in _write_domain_to_file old_domain.merge(new_domain).persist_clean(domain_path) File "/Users/tayfun/w/rasa/rasa/shared/core/domain.py", line 1569, in persist_clean as_yaml = self.as_yaml(clean_before_dump=True) File "/Users/tayfun/w/rasa/rasa/shared/core/domain.py", line 1594, in as_yaml domain_data[KEY_RESPONSES] = self.get_responses_with_multilines( File "/Users/tayfun/w/rasa/rasa/shared/core/domain.py", line 1440, in get_responses_with_multilines response_text = example.get(KEY_RESPONSES_TEXT, "") AttributeError: 'str' object has no attribute 'get' h3. Command / Request No response h3. Relevant log output No response
The text was updated successfully, but these errors were encountered: