rasa: SocketIO Response With 200 Ok, But can't return any data.

Hello, I have configured my Rasa-NLU and Core, I added everything, everything works well except some small issues.

I’ve posted Rasa Forum but no one returns. This issue has to be solved asap.

input_channel = SocketIOInput( # event name for messages sent from the user user_message_evt="user_uttered", # event name for messages sent from the bot bot_message_evt="message", # socket.io namespace to use for the messages namespace = "/" ) s = agent.handle_channels([input_channel], 5004, serve_forever=True)

This is just a tutorial which I watch and researched. I have two major problems in it.

I use Socket IO when I write Core Python but I don’t know how Rasa use this.

1-) I requested socket.emit with Javascript with given events, it posts 200 OK, but nothing returns, even data I sent. How can I see response from my model? Like Slack Bot entegration? 2-) When I send it as a JSON , it works, but when I send to string, it will raise error from rasa/socketio. So where should I handle data after user enter their string?

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 1
  • Comments: 18 (6 by maintainers)

Most upvoted comments

I’m sorry I don’t think I understand your setup. I guess you have something as described here? Does your bot work when you run it through the command line not using any external channels? python3 -m rasa_core_sdk.endpoint --actions actions and in a new window: python3 -m rasa_core.run -d models/current/dialogue -u models/current/nlu --endpoints endpoints.yml (You’ll have to change the the model paths depending on where you have your trained models saved)