Currently I am migrating to RASA 2.0 but my custom components are not working anymore. When I try to train the core model it gives me an AttributeError saying:
Yes but the documentation for custom components for Rasa 2.0 is currently not adjusted properly. Also, the tutorial will not reflect a real scenario anymore. I believe this should be updated.
No problem @tyd! Yes I mean those docs and I am referring to the tutorial mentioned in the docs under custom components. For me it was not clear how the Message object changed from RASA 1.X to RASA 2.0.
Hey @fabrice-toussaint, just to clarify, the docs themselves are updated, it’s just the tutorial that is out of date? In that case, we’ll take reference to the tutorial out of the docs, until it’s updated again.
Hey @akelad, yes the docs are updated but missing information about the updated Message object (which I think might come in handy). However, this could also be deducted from an updated tutorial (or diving into the code).
I think the Message object stuff is probably covered somewhere in the changelog i’ll update the docs to remove the reference to the blog post for now, and eventually we’ll make sure to update it
I am facing the same error “AttributeError: ‘Message’ object has no attribute ‘text’”.
It was not an issue earlier and occurred without any changes to the code created.
Please help to fix this issue.
The text now is in a dictionary attribute of the Message object called data. However, you also need to catch a KeyError (at least in my case) as when starting this key does not exist. I am not sure whether this is the best way to do this but it works for me.