Skip to content
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

Handle empty intent mapping in domain #7916

Closed
sentry-io bot opened this issue Feb 9, 2021 · 0 comments · Fixed by #8222
Closed

Handle empty intent mapping in domain #7916

sentry-io bot opened this issue Feb 9, 2021 · 0 comments · Fixed by #8222
Assignees
Labels
area:rasa-oss 🎡 Anything related to the open source Rasa framework area:rasa-oss/training-data Issues focused around Rasa training data (stories, NLU, domain, etc.) effort:atom-squad/1 Label which is used by the Rasa Atom squad to do internal estimation of task sizes. feature:ux-cli+training-data Feature: Improve user experience with Rasa CLI and training data for developers type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors.

Comments

@sentry-io
Copy link

sentry-io bot commented Feb 9, 2021

Sentry Issue: RASA-OPEN-SOURCE-3PF

Stack Trace

AttributeError: 'NoneType' object has no attribute 'setdefault'
(21 additional frame(s) were not displayed)
...
  File "rasa/shared/core/domain.py", line 177, in from_dict
    return cls(
  File "rasa/shared/core/domain.py", line 527, in __init__
    self.intent_properties = self.collect_intent_properties(
  File "rasa/shared/core/domain.py", line 441, in collect_intent_properties
    intent_name, properties = cls._intent_properties(
  File "rasa/shared/core/domain.py", line 476, in _intent_properties
    cls._transform_intent_properties_for_internal_use(
  File "rasa/shared/core/domain.py", line 322, in _transform_intent_properties_for_internal_use
    properties.setdefault(USE_ENTITIES_KEY, True)

Further Information

This is caused when you have in domain.yml, for example:

intents:
- greet:
- goodbye:

Command or request that led to error:

rasa train
@joejuzl joejuzl added area:rasa-oss 🎡 Anything related to the open source Rasa framework area:rasa-oss/training-data Issues focused around Rasa training data (stories, NLU, domain, etc.) type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors. labels Feb 9, 2021
@TyDunn TyDunn added the feature:ux-cli+training-data Feature: Improve user experience with Rasa CLI and training data for developers label Feb 17, 2021
@wochinge wochinge added the effort:atom-squad/1 Label which is used by the Rasa Atom squad to do internal estimation of task sizes. label Mar 12, 2021
@Imod7 Imod7 linked a pull request Mar 17, 2021 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:rasa-oss 🎡 Anything related to the open source Rasa framework area:rasa-oss/training-data Issues focused around Rasa training data (stories, NLU, domain, etc.) effort:atom-squad/1 Label which is used by the Rasa Atom squad to do internal estimation of task sizes. feature:ux-cli+training-data Feature: Improve user experience with Rasa CLI and training data for developers type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants