Rasa X fails to show socketio conversations

I encountered this error locally and also by using docker-compose on GCP. slika

The error in browser console says: Objects are not valid as a React child (found: object with keys {type, payload}). If you meant to render a collection of children, use an array instead.

Some socketio conversations are showing at the beginning, but most of them fail after a number of user messages and just show this error.

NLU data from these conversations is properly loading in NLU inbox.

I am using Rasa x version 0.37.1. This also happened with version 0.37.0.

I think I found the issue. The problem only occurs if the text and attachment are sent in the same utter message. If they are sent separately, Rasa X correctly shows the conversation.

dispatcher.utter_message(text=“This is an example”) dispatcher.utter_message(attachment=create_carousel(elements))