Git Product home page Git Product logo

Comments (11)

oldmonkABA avatar oldmonkABA commented on July 3, 2024 2

upgrade to latest rasa_core
see this : #28

from rasa-webchat.

mirfan899 avatar mirfan899 commented on July 3, 2024 1
<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.

oldmonkABA avatar oldmonkABA commented on July 3, 2024 1

change
hideWhenNotConnected: true,
to
hideWhenNotConnected: false,

from rasa-webchat.

mirfan899 avatar mirfan899 commented on July 3, 2024

Same issue. UI is blank.

from rasa-webchat.

znat avatar znat commented on July 3, 2024

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.

mirfan899 avatar mirfan899 commented on July 3, 2024

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.

znat avatar znat commented on July 3, 2024

can you share the widget config and Rasa Core crendentials.yaml ?

from rasa-webchat.

mirfan899 avatar mirfan899 commented on July 3, 2024

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.

true1337 avatar true1337 commented on July 3, 2024

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.

SallemiDorsaf avatar SallemiDorsaf commented on July 3, 2024

Did someone solve this issue?
I still getting "Waiting for server..." and can't type anything

from rasa-webchat.

santteegt avatar santteegt commented on July 3, 2024

@SallemiDorsaf check RasaHQ/rasa#4204

from rasa-webchat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.