Using rasa: 2.0.1 rasa-sdk: 2.0.0 rasa-x: 0.33.0rc1
and running on a kubernetes deployment from the easy install script.
When I try to build a model, I get this error in the logs.
Encountered an exception while training. Please check the logs of the rasa worker container for more information.
ERROR:rasax.community.api.blueprints.models:400, message='Bad Request', url=URL('http://rasa-x-1602877597-rasa-worker:5005/model/train?force=true&save_to_default_model_directory=true&token=2gLL9Ha4LIiPcytJtgUuAnV6Yeqx6X5E')
Processed story blocks: 0%| | 0/1 [00:00<?, ?it/s] Processed story blocks: 0%| | 0/1 [00:00<?, ?it/s, # trackers=1] Processed story blocks: 100%|██████████| 1/1 [00:00<00:00, 1739.65it/s, # trackers=1]
sanic.exceptions.InvalidUsage: Failed when parsing body as json
raise InvalidUsage("Failed when parsing body as json")
File "/opt/venv/lib/python3.7/site-packages/sanic/request.py", line 177, in load_json
self.load_json()
File "/opt/venv/lib/python3.7/site-packages/sanic/request.py", line 167, in json
rjs = request.json
File "/opt/venv/lib/python3.7/site-packages/rasa/server.py", line 757, in train
result = await result
File "/opt/venv/lib/python3.7/site-packages/rasa/server.py", line 158, in decorated
response = await response
File "/opt/venv/lib/python3.7/site-packages/sanic/app.py", line 976, in handle_request
Traceback (most recent call last):
During handling of the above exception, another exception occurred:
ValueError: Expected object or value
self.parsed_json = loads(self.body)
File "/opt/venv/lib/python3.7/site-packages/sanic/request.py", line 173, in load_json
Traceback (most recent call last):
[2020-10-26 20:55:15 +0000] [1] [ERROR] Exception occurred while handling uri: 'http://rasa-x-1602877597-rasa-worker:5005/model/train?force=true&save_to_default_model_directory=true&token=2gLL9Ha4LIiPcytJtgUuAnV6Yeqx6X5E'