Comments (9)
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
from rasa-webchat.
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:
pip install git+git://github.com/rasahq/rasa_core.git
The specific file is this socketio.py. If your local rasa_core has the session_request function then it is the right version.
from rasa-webchat.
@mmenti do you see the session id log in the console?
Can you paste the snippet with the parameters?
from rasa-webchat.
@znat yes, in the console I can see "connect:5fddce85aaaf403290476e42896c10f5", and the Rasa stack logs show for this session id:
2018-12-03 13:56:44 INFO engineio - 5fddce85aaaf403290476e42896c10f5: Received packet PING data None
2018-12-03 13:56:44 INFO engineio - 5fddce85aaaf403290476e42896c10f5: Sending packet PONG data None
86.16.184.99 - - [2018-12-03 13:56:44] "POST /socket.io/?EIO=3&transport=polling&t=MTqMrkA&sid=5fddce85aaaf403290476e42896c10f5 HTTP/1.1" 200 190 0.000647
86.16.184.99 - - [2018-12-03 13:56:44] "GET /socket.io/?EIO=3&transport=polling&t=MTqMlUy&sid=5fddce85aaaf403290476e42896c10f5 HTTP/1.1" 200 206 25.517103
Is that the info you wanted?
from rasa-webchat.
Can you share the js snippet you are using? The one in your script tag?
from rasa-webchat.
Sure (I tried both webchat-latest and 0.5.0 with no difference):
<script src="https://storage.googleapis.com/mrbot-cdn/webchat-latest.js"></script>
<script>
WebChat.default.init({
selector: "#webchat",
initPayload: "/story_greet",
interval: 1000, // 1000 ms between each message
customData: {"userId": "123"}, // arbitrary custom data. Stay minimal as this will be added to the socket
socketUrl: "http://3.8.51.73:5002",
socketPath: "/socket.io/",
title: "Title",
subtitle: "Subtitle",
inputTextFieldHint: "Type a message...",
connectingText: "Waiting for server...",
fullScreenMode: false,
profileAvatar: "",
params: {
images: {
dims: {
width: 300,
height: 200,
}
},
storage: "session"
}
});
WebChat.show();
</script>
from rasa-webchat.
Hi @mmenti,
After the connect:{sid}
message, do you see something in console in the forms of:
session_confirm:{socker_id}
session_id:{session_id}
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.
from rasa-webchat.
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..
from rasa-webchat.
Hello,
I face the same issue with the bot saying "Waiting for server..."
I tried to install latest version of rasa core with the command line proposed by @dliuproduction :
pip install git+git://github.com/rasahq/rasa_core.git
It doesn't solve the problem.
I'm not sure the good version of rasacore is installed.
Here is the result :
# rasa --version
Rasa 0.15.0a1
I also tried to update rasa core with :
pip install --upgrade rasa_core
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.
Michael
from rasa-webchat.
Related Issues (20)
- Link Image Address HOT 1
- ¿Can I change the parameter language that goes in customData to the widget, without recharging the page? HOT 2
- Starting the conversation HOT 1
- how can i get response of socket.io HOT 1
- JWT authentication HOT 1
- Unable to connect to websocket getting handshake error and unable to customize the chat bot HOT 2
- How to use in Angular project HOT 1
- Table is not rendered HOT 1
- How can I change file and import it into my project? HOT 1
- I don't want the link in the button to open in a new tab. HOT 1
- Rasa 3? HOT 7
- Custom Button in the header HOT 4
- showFullScreenButton and displayUnreadCount HOT 1
- React integration HOT 1
- Not able to clone and run the code in my local HOT 3
- tooltipPayload overwrites initPayload HOT 2
- Not sure about what is the purpose of dispatch evalUrl function HOT 1
- Adding a custom component to RASA web-chat HOT 1
- Getting 'AsyncServer.enter_room' was never awaited error. HOT 2
- Bot does not respond HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rasa-webchat.