-
Notifications
You must be signed in to change notification settings - Fork 495
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Stuck in "Waiting for server..." #59
Comments
i am seeing the same behavior.. Using webchat Versions 0.5.3, 0.5.2 or 0.5.0 in a <script> tag I see client the connection to my Rasa Server and its sending a Session_request event, but it does not appear to be sending the initPayload. ( or at least rasa is not registering it. ) script config WebChat.default.init({
selector: "#webchat",
initPayload: "utter_greet",
interval: 1000, // 1000 ms between each message
socketUrl: "http://test-server:5004",
socketPath: "/socket.io/",
title: "Web Chat",
inputTextFieldHint: "Type a message...",
connectingText: "Waiting for server...",
fullScreenMode: false,
profileAvatar: "http://test-server:8080/images/dhelmet.png",
hideWhenNotConnected: false,
params: {
images: {
dims: {
width: 300,
height: 200,
}
},
storage: "local"
}
})
WebChat.show() rasa-core 0.12.4 Rasa Logs
Hope that helps... |
Are you able to talk to the bot? Does it answer? |
@znat No, the input is disabled. but the connection to the server is logged. Im using firefox, the version of the plugin is the latest, im using the script tag. @colinhobbs Thanks!, this rolling back the js client to version 0.4.2 make it work as expected. |
Did you set |
@znat sorry i'm using only socket.io for the backend, im not using rasa at the moment. but usign version 0.4.2 made the plugin work with a simple echo bot:
|
with rasa.. I do have the session persistence set ..
I do see the client request a session.. just not seeing rasa respond at all to that request... I used @jeanpah config on nodejs and could see the same result.. in looking at the logs i see the client connect. I guess i'm not sure what the client is looking for to confirm it has a connection to the server because you can see the client send the heardbeat ping and pong.. Rasa logs
Hope that helps.. |
I've resolved this issue recently. This will not be an issue once rasa_core release a new version. 0.12.4+. |
@hrqiang Is there any solution for socket.io? |
check issue #28 |
Hi everyone, I managed to make the plugin work in version 0.5.3 with socket.io. it was fixed by adding two more events to the socket script "session_request, session_confirm":
|
Right, of course! Thanks @jeanpah . |
Hi, i need some help please
Im trying to use the plugin with socket.io in localhost but the chat plugin gets stuck at "Waiting for server..." phase.
This is the code fragment i'm using for the web server:
When the client connects the message from the server is sent but im unable to write from the client side.
im suspecting that it has something to do with
initPayload: "/get_started"
but i havent found anywhere what that options is suposed to do.
Thaks!
The text was updated successfully, but these errors were encountered: