Rasa X polling conversation error

Hello, Iam using Rasa X 0.34. This error occured in the docker logs, when i opened a conversation. Not all conversations are affected.

[2021-01-06 10:39:23 +0000] - (sanic.access)[INFO][172.18.0.11:35126]: GET http://<server_url>/api/conversations/c281d9feb7cb43d4981d2927efdb0c89?format=full_conversation&since=0  500 214
[2021-01-06 10:39:27 +0000] [32] [ERROR] Exception occurred while handling uri: 'http://<server_url>/api/conversations/c281d9feb7cb43d4981d2927efdb0c89?format=full_conversation&since=0'
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/sanic/app.py", line 973, in handle_request
    response = await response
  File "/usr/local/lib/python3.7/site-packages/rasax/community/api/decorators.py", line 213, in decorated_function
    return await await_and_return_response(args, kwargs, request)
  File "/usr/local/lib/python3.7/site-packages/rasax/community/api/decorators.py", line 143, in await_and_return_response
    response = await response
  File "/usr/local/lib/python3.7/site-packages/rasax/community/api/decorators.py", line 50, in decorated_function
    return await f(request, user=user, *args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/rasax/community/api/blueprints/stack.py", line 290, in get_conversation_tracker
    return await get_conversation_tracker_impl(request, conversation_id, user)
  File "/usr/local/lib/python3.7/site-packages/rasax/community/api/blueprints/stack.py", line 363, in get_conversation_tracker_impl
    exclude_leading_action_session_start,
  File "/usr/local/lib/python3.7/site-packages/rasax/community/services/event_service.py", line 1474, in get_tracker_with_message_flags
    rasa_environment_query,
  File "/usr/local/lib/python3.7/site-packages/rasax/community/services/event_service.py", line 1491, in _get_flagged_tracker_dict
    conversation_id, until_time, since_time, rasa_environment_query
  File "/usr/local/lib/python3.7/site-packages/rasax/community/services/event_service.py", line 108, in get_tracker_for_conversation
    return DialogueStateTracker.from_dict(conversation_id, events)
  File "/usr/local/lib/python3.7/site-packages/rasa/shared/core/trackers.py", line 126, in from_dict
    evts = events.deserialise_events(events_as_dict)
  File "/usr/local/lib/python3.7/site-packages/rasa/shared/core/events.py", line 54, in deserialise_events
    event = Event.from_parameters(e)
  File "/usr/local/lib/python3.7/site-packages/rasa/shared/core/events.py", line 249, in from_parameters
    event_class: Optional[Type[Event]] = Event.resolve_by_type(event_name, default)
  File "/usr/local/lib/python3.7/site-packages/rasa/shared/core/events.py", line 301, in resolve_by_type
    raise ValueError(f"Unknown event name '{type_name}'.")
ValueError: Unknown event name 'user_featurization'.
1 Like

The error is most likely raised by incompatible Rasa Open Source version within Rasa X. user_featuraization is a new event type introduced in rasa open source 2.2.1. Rasa X may have a lower version of Rasa Open Source and hence it cannot read the new event type. Could you try poetry update?