I am getting this error after sending rest request to rasa.
sudo docker run --user 1000 -it -p 5005:5005 -v $(pwd):/app rasa/rasa:3.0.8-full run --enable-api --cors “*”
sudo docker run -it --rm --user 0 -v $(pwd):/app rasa/rasa:3.0.8-full init --no-prompt
POST: http://localhost:5005/webhooks/rest/webhook
{
"text": "Hello",
"user": "aziz"
}
2022-02-25 04:03:31 WARNING matplotlib - Matplotlib created a temporary config/cache directory at /tmp/matplotlib-z0o6_lle because the default path (/app/.config/matplotlib) is not a writable directory; it is highly recommended to set the MPLCONFIGDIR environment variable to a writable directory, in particular to speed up the import of Matplotlib and to better support multiprocessing.
2022-02-25 04:03:31 INFO root - Starting Rasa server on http://0.0.0.0:5005
2022-02-25 04:03:33 INFO rasa.core.processor - Loading model models/20220225-032929-humane-arrow.tar.gz...
2022-02-25 04:03:51 WARNING rasa.shared.utils.common - The UnexpecTED Intent Policy is currently experimental and might change or be removed in the future 🔬 Please share your feedback on it in the forum (http://forum.rasa.com) to help us make this feature ready for production.
2022-02-25 04:03:58 INFO root - Rasa server is up and running.
2022-02-25 04:04:05 ERROR rasa.core.channels.rest - An exception occured while handling user message 'None'.
Traceback (most recent call last):
File "/opt/venv/lib/python3.8/site-packages/rasa/engine/graph.py", line 458, in __call__
output = self._fn(self._component, **run_kwargs)
File "/opt/venv/lib/python3.8/site-packages/rasa/nlu/classifiers/regex_message_handler.py", line 51, in process
return [
File "/opt/venv/lib/python3.8/site-packages/rasa/nlu/classifiers/regex_message_handler.py", line 52, in <listcomp>
YAMLStoryReader.unpack_regex_message(
File "/opt/venv/lib/python3.8/site-packages/rasa/shared/core/training_data/story_reader/yaml_story_reader.py", line 617, in unpack_regex_message
user_text = message.get(TEXT).strip()
AttributeError: 'NoneType' object has no attribute 'strip'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/opt/venv/lib/python3.8/site-packages/rasa/core/channels/rest.py", line 120, in receive
await on_new_message(
File "/opt/venv/lib/python3.8/site-packages/rasa/core/channels/channel.py", line 89, in handler
await app.agent.handle_message(message)
File "/opt/venv/lib/python3.8/site-packages/rasa/core/agent.py", line 419, in handle_message
return await self.processor.handle_message(message)
File "/opt/venv/lib/python3.8/site-packages/rasa/core/processor.py", line 136, in handle_message
tracker = await self.log_message(message, should_save_tracker=False)
File "/opt/venv/lib/python3.8/site-packages/rasa/core/processor.py", line 383, in log_message
await self._handle_message_with_tracker(message, tracker)
File "/opt/venv/lib/python3.8/site-packages/rasa/core/processor.py", line 682, in _handle_message_with_tracker
parse_data = await self.parse_message(message)
File "/opt/venv/lib/python3.8/site-packages/rasa/core/processor.py", line 635, in parse_message
parse_data = self._parse_message_with_graph(message, only_output_properties)
File "/opt/venv/lib/python3.8/site-packages/rasa/core/processor.py", line 659, in _parse_message_with_graph
results = self.graph_runner.run(
File "/opt/venv/lib/python3.8/site-packages/rasa/engine/runner/dask.py", line 101, in run
dask_result = dask.get(run_graph, run_targets)
File "/opt/venv/lib/python3.8/site-packages/dask/local.py", line 553, in get_sync
return get_async(
File "/opt/venv/lib/python3.8/site-packages/dask/local.py", line 496, in get_async
for key, res_info, failed in queue_get(queue).result():
File "/usr/lib/python3.8/concurrent/futures/_base.py", line 437, in result
return self.__get_result()
File "/usr/lib/python3.8/concurrent/futures/_base.py", line 389, in __get_result
raise self._exception
File "/opt/venv/lib/python3.8/site-packages/dask/local.py", line 538, in submit
fut.set_result(fn(*args, **kwargs))
File "/opt/venv/lib/python3.8/site-packages/dask/local.py", line 234, in batch_execute_tasks
return [execute_task(*a) for a in it]
File "/opt/venv/lib/python3.8/site-packages/dask/local.py", line 234, in <listcomp>
return [execute_task(*a) for a in it]
File "/opt/venv/lib/python3.8/site-packages/dask/local.py", line 225, in execute_task
result = pack_exception(e, dumps)
File "/opt/venv/lib/python3.8/site-packages/dask/local.py", line 220, in execute_task
result = _execute_task(task, data)
File "/opt/venv/lib/python3.8/site-packages/dask/core.py", line 119, in _execute_task
return func(*(_execute_task(a, cache) for a in args))
File "/opt/venv/lib/python3.8/site-packages/rasa/engine/graph.py", line 465, in __call__
raise GraphComponentException(
rasa.engine.exceptions.GraphComponentException: Error running graph component for node run_RegexMessageHandler.