Comments (11)
upgrade to latest rasa_core
see this : #28
from rasa-webchat.
<div id="webchat"/>
<script>
WebChat.default.init({
selector: "#webchat",
initPayload: "/get_started",
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://localhost:5002",
socketPath: "/socket.io/",
title: "Title",
subtitle: "Subtitle",
inputTextFieldHint: "Type a message...",
connectingText: "Waiting for server...",
hideWhenNotConnected: true,
fullScreenMode: false,
profileAvatar: "http://to.avat.ar",
openLauncherImage: 'myCustomOpenImage.png',
closeLauncherImage: 'myCustomCloseImage.png',
params: {
images: {
dims: {
width: 300,
height: 200,
}
},
storage: "local"
}
})
</script>
socketio:
user_message_evt: user_uttered
bot_message_evt: bot_uttered
session_persistence: true
from rasa-webchat.
change
hideWhenNotConnected: true,
to
hideWhenNotConnected: false,
from rasa-webchat.
Same issue. UI is blank.
from rasa-webchat.
By default the hideWhenNotConnected
parameter is true
, which means that the widget will hide if it cannot connect to the socket. Make sure you set the socket
and socketPath
params correctly
from rasa-webchat.
I got this.
127.0.0.1 - - [2019-02-26 19:54:30] "POST /socket.io/?EIO=3&transport=polling&t=MagJCnk&sid=aaecc8a6696f41eb8528fe1189000584 HTTP/1.1" 200 195 0.000663
127.0.0.1 - - [2019-02-26 19:54:30] "GET /socket.io/?EIO=3&transport=polling&t=MagJ6fH&sid=aaecc8a6696f41eb8528fe1189000584 HTTP/1.1" 200 211 25.120419
and it goes forever. No UI.
from rasa-webchat.
can you share the widget config and Rasa Core crendentials.yaml
?
from rasa-webchat.
It's working now using hideWhenNotConnected: false
but another issue occurred. It says waiting for server
when I've correctly connected it to rasa server using socket.
from rasa-webchat.
Did someone solve this issue?
I still getting "Waiting for server..." and can't type anything.
Please, help me configure Rasa X and Rasa-Webchat to interact with each other.
Logs:
2019-06-21 12:09:15 INFO engineio.server - 9a588e8482e840efbb49d93619d03712: Sending packet OPEN data {'sid': '9a588e8482e840efbb49d93619d03712', 'upgrades': ['websocket'], 'pingTimeout': 60000, 'pingInterval': 25000}
2019-06-21 12:09:15 DEBUG rasa.core.channels.socketio - User 9a588e8482e840efbb49d93619d03712 connected to socketIO endpoint.
2019-06-21 12:09:15 INFO engineio.server - 9a588e8482e840efbb49d93619d03712: Sending packet MESSAGE data 0
Backend db: sqlite
Versions:
rasa 1.1.3
rasa-sdk 1.1.0
rasa-x 0.19.2
Webchat
<script src="https://storage.googleapis.com/mrbot-cdn/webchat-0.5.9.js"></script>
<script>
WebChat.default.init({
selector: "#webchat",
//initPayload: "/get_started",
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://localhost:5005",
socketPath: "/socket.io",
title: "Title",
subtitle: "Subtitle",
inputTextFieldHint: "Type a message...",
connectingText: "Waiting for server...",
hideWhenNotConnected: false,
fullScreenMode: false,
//profileAvatar: "https://rasa.com/assets/img/demo/rasa_avatar.png",
openLauncherImage: 'myCustomOpenImage.png',
closeLauncherImage: 'myCustomCloseImage.png',
params: {
images: {
dims: {
width: 1000,
height: 1000,
}
},
storage: "local"
}
})
</script>
Config:
socketio:
user_message_evt: user_uttered
bot_message_evt: bot_uttered
session_persistence: false
Changing session_persistence to true doesn't do anything.
Changing webchat's version to 0.4.1 allows to type messages but rasa backend still doesn't accept anything.
Using rest api channel with another webchat repository works.
from rasa-webchat.
Did someone solve this issue?
I still getting "Waiting for server..." and can't type anything
from rasa-webchat.
@SallemiDorsaf check RasaHQ/rasa#4204
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.