Event sent by Socketio channel when session_persistence is set to True

  • I have tried to create a client to communicate with Rasa through Socketio channel.

  • In case “session_persistence” is set to False, When sending messages from the client I send the event “user_uttered” and I set the listening event to be “bot_uttered”. This is working fine and exactly as expected.

  • However, in case session_persistence is set to True, I do the same as before (sending “user_uttered” event). However, I didn’t receive output from the Rasa server. After some debugging I realized that The Rasa server doesn’t send the “bot_uttered” event as I was expecting.

So what is this happening? Am I missing something here?

Hello I am facing the similar issue, got any solution for the same?

I finally managed to fix this!

My error was:

coroutine ‘AsyncServer.enter_room’ was never awaited

That meant that the session_id was not registered properly. When the server then tries to send the message it can’t find any client with that session_id

FIX: just to downgrade the soketio version

python-socketio<5.10.0