botfront / rasa-webchat

A feature-rich chat widget for Rasa and Botfront
https://botfront.io/rasa
Apache License 2.0
948 stars 496 forks source link

Cannot send / receive message from RASA #381

Closed hkbu-victor closed 3 years ago

hkbu-victor commented 3 years ago

Previously, I can use this webchat to communicate with my RASA server. Recently, i cannot do that. By inspecting the RASA server debug messages, it is sure that webchat can connect to socket IO endpoint, but no further debug messages come out and i assume they cannot send or receive after having connection! The Widget appears and I can type anything but just no response comes out. When I test webchat with the demo "https://bf-botfront.development.agents.botfront.cloud", everything is normal! Any suggestion ?

The command i used in starting RASA server is: rasa run -m models --enable-api --cors "*" --debug

And I use webchat as script in HTML pages

Rasa version: 2.1.2, webchat: 1.0.0

hkbu-victor commented 3 years ago

Solved! It is my mistake. I just think that the socketio event name in credentials.yml can be any strings. But they must be "user_uttered" and "bot_uttered" for "user_message_evt" and "bot_message_evt".

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.