Git Product home page Git Product logo

Comments (9)

mmenti avatar mmenti commented on July 3, 2024 5

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.

dliuproduction avatar dliuproduction commented on July 3, 2024 1

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.

znat avatar znat commented on July 3, 2024

@mmenti do you see the session id log in the console?
Can you paste the snippet with the parameters?

from rasa-webchat.

mmenti avatar mmenti commented on July 3, 2024

@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.

znat avatar znat commented on July 3, 2024

Can you share the js snippet you are using? The one in your script tag?

from rasa-webchat.

mmenti avatar mmenti commented on July 3, 2024

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.

dliuproduction avatar dliuproduction commented on July 3, 2024

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.

mmenti avatar mmenti commented on July 3, 2024

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.

mikakenku avatar mikakenku commented on July 3, 2024

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)

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.