-
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
Rasa-webchat widget appears to connect to rasa server, but keeps saying "Waiting for server..." #28
Comments
@mmenti do you see the session id log in the console? |
@znat yes, in the console I can see "connect:5fddce85aaaf403290476e42896c10f5", and the Rasa stack logs show for this session id:
Is that the info you wanted? |
Can you share the js snippet you are using? The one in your script tag? |
Sure (I tried both webchat-latest and 0.5.0 with no difference):
|
Hi @mmenti, After the
We implemented a session persistence feature which requires some server code to generate a session_id and perform a handshake. The server changes are up in the latest release today at: rasa_core#0.12.3 Try it and see if it works. There should be no extra setup required. |
Thanks @dliuproduction - I just upgraded my rasa_core install and tried again, but the only thing I see in the Console is the "connect:{sid}" line, I don't see the 2 lines you mention at all. The only other thing I can see (if I choose to show XMLHTTPRequests) is the XHR GET and POST requests.. |
Sorry, looks like the changes are not included yet in the latest release of rasa_core. It is already in the master branch though. Can you try to install rasa_core with:
The specific file is this socketio.py. If your local rasa_core has the session_request function then it is the right version. |
Sorry for the late reply - this ended up being quite a painful process, because the latest rasa core version doesn't support python 2.7 anymore, so I had to install python 3 - the problem being that on AWS Amazon Linux there is only 3.7 (which Tensorflow doesn't work with), so I ended up having to build 3.6 from source. But eventually, after rebuilding the models etc using python 3, it now all seems to work - thanks so much for all the help @dliuproduction and @znat |
Hello, I face the same issue with the bot saying "Waiting for server..." It doesn't solve the problem. I'm not sure the good version of rasacore is installed.
I also tried to update rasa core with :
the result of rasa --version is the same Rasa 0.15.0a1 I don't know where to look now to investigate and solve the problem. Can you help me please ? Thanks a lot. |
I’m running the Rasa stack starter pack example with the Rasa webchat widget, embedded as JS script, using the Rasa server socketio setup.
It appears to connect successfully (i.e. when running the rasa stack server, I see the log messages that suggest POST and GET request to e.g. /socket.io/?EIO=3&transport=polling&t=MThFYM_&sid=cfc8653cd08d4ba98127487495d5ad6a are successful and return a 200 code, but the web widget on the page continues to say “Waiting for server…” and the user input field stays disabled. There are also no XHR error messages from the web inspector, suggesting the connection to the Rasa stack server works (I can see these errors as soon as I stop the rasa server).
I feel I'm missing something obvious here, but I’m kind of lost trying to figure out what makes the webchat widget think it is not connected to the server - any pointers or suggestions would be very welcome, thanks!
The text was updated successfully, but these errors were encountered: