SocketIO Response With 200 Ok, But can't return any data.
See original GitHub issueHello, 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?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:18 (6 by maintainers)
Top GitHub 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)This issue has been automatically closed due to inactivity. Please create a new issue if you need more help.