AttributeError: 'NoneType' object has no attribute 'endswith'

Transport closed @ (‘127.0.0.1’, 40950) and exception experienced during error handling 2021-07-24 15:35:13 ERROR asyncio - Task exception was never retrieved future: <Task finished coro=<RestInput.on_message_wrapper() done, defined at /opt/ohpc/admin/spack/0.15.0/opt/spack/linux-centos8-sandybridge/gcc-9.3.0/python-3.7.7-wvxpj4u2qni47vq4n5hpgy6se3523yww/lib/python3.7/site-packages/rasa/core/channels/rest.py:33> exception=AttributeError("‘NoneType’ object has no attribute ‘endswith’")> Traceback (most recent call last): File “/opt/ohpc/admin/spack/0.15.0/opt/spack/linux-centos8-sandybridge/gcc-9.3.0/python-3.7.7-wvxpj4u2qni47vq4n5hpgy6se3523yww/lib/python3.7/site-packages/rasa/core/channels/rest.py”, line 47, in on_message_wrapper await on_new_message(message) File “/opt/ohpc/admin/spack/0.15.0/opt/spack/linux-centos8-sandybridge/gcc-9.3.0/python-3.7.7-wvxpj4u2qni47vq4n5hpgy6se3523yww/lib/python3.7/site-packages/rasa/core/channels/channel.py”, line 89, in handler await app.agent.handle_message(message) File “/opt/ohpc/admin/spack/0.15.0/opt/spack/linux-centos8-sandybridge/gcc-9.3.0/python-3.7.7-wvxpj4u2qni47vq4n5hpgy6se3523yww/lib/python3.7/site-packages/rasa/core/agent.py”, line 577, in handle_message return await processor.handle_message(message) File “/opt/ohpc/admin/spack/0.15.0/opt/spack/linux-centos8-sandybridge/gcc-9.3.0/python-3.7.7-wvxpj4u2qni47vq4n5hpgy6se3523yww/lib/python3.7/site-packages/rasa/core/processor.py”, line 108, in handle_message await self._predict_and_execute_next_action(message.output_channel, tracker) File “/opt/ohpc/admin/spack/0.15.0/opt/spack/linux-centos8-sandybridge/gcc-9.3.0/python-3.7.7-wvxpj4u2qni47vq4n5hpgy6se3523yww/lib/python3.7/site-packages/rasa/core/processor.py”, line 657, in _predict_and_execute_next_action action, prediction = self.predict_next_action(tracker) File “/opt/ohpc/admin/spack/0.15.0/opt/spack/linux-centos8-sandybridge/gcc-9.3.0/python-3.7.7-wvxpj4u2qni47vq4n5hpgy6se3523yww/lib/python3.7/site-packages/rasa/core/processor.py”, line 379, in predict_next_action prediction = self._get_next_action_probabilities(tracker) File “/opt/ohpc/admin/spack/0.15.0/opt/spack/linux-centos8-sandybridge/gcc-9.3.0/python-3.7.7-wvxpj4u2qni47vq4n5hpgy6se3523yww/lib/python3.7/site-packages/rasa/core/processor.py”, line 922, in _get_next_action_probabilities tracker, self.domain, self.interpreter File “/opt/ohpc/admin/spack/0.15.0/opt/spack/linux-centos8-sandybridge/gcc-9.3.0/python-3.7.7-wvxpj4u2qni47vq4n5hpgy6se3523yww/lib/python3.7/site-packages/rasa/core/policies/ensemble.py”, line 817, in probabilities_using_best_policy winning_prediction = self._best_policy_prediction(tracker, domain, interpreter) File “/opt/ohpc/admin/spack/0.15.0/opt/spack/linux-centos8-sandybridge/gcc-9.3.0/python-3.7.7-wvxpj4u2qni47vq4n5hpgy6se3523yww/lib/python3.7/site-packages/rasa/core/policies/ensemble.py”, line 711, in _best_policy_prediction return self._pick_best_policy(predictions) File “/opt/ohpc/admin/spack/0.15.0/opt/spack/linux-centos8-sandybridge/gcc-9.3.0/python-3.7.7-wvxpj4u2qni47vq4n5hpgy6se3523yww/lib/python3.7/site-packages/rasa/core/policies/ensemble.py”, line 633, in _pick_best_policy best_policy_name, best_confidence[0] File “/opt/ohpc/admin/spack/0.15.0/opt/spack/linux-centos8-sandybridge/gcc-9.3.0/python-3.7.7-wvxpj4u2qni47vq4n5hpgy6se3523yww/lib/python3.7/site-packages/rasa/core/policies/ensemble.py”, line 564, in is_not_mapping_policy is_mapping = policy_name.endswith("" + MappingPolicy.name) AttributeError: ‘NoneType’ object has no attribute ‘endswith’

@atwine Heya! Can you please tell how this error occurred and which commend you used?