Coder Social home page Coder Social logo

Comments (8)

hotzenklotz avatar hotzenklotz commented on July 27, 2024

I don't think this is a chatroom specific question. host: "http://localhost:5005" should be correct given that you can make a connect to your Rasa backend.

container: document.querySelector(".chat-container") refers to the HTML container element where the widget is mounted on your page. It has nothing to do with Docker containers.

Have you tried connecting to your Rasa docker setup without the Chatroot Widget? curl or postman. Rasa should give you status response if is running correctly. E.g.

curl localhost:5005/webhooks/rest
>> {"status":"ok"}

from chatroom.

InnoOmnia avatar InnoOmnia commented on July 27, 2024

This works
curl localhost:5005/webhooks/rest
{"status":"ok"}

from chatroom.

hotzenklotz avatar hotzenklotz commented on July 27, 2024

Do you have any errors reported in in your browser's dev tools? Which browser + version are you using?

Which version of the chatroom widget and Rasa are you using?

from chatroom.

InnoOmnia avatar InnoOmnia commented on July 27, 2024

Chrome Version 85.0.4183.102
I think this is the Rasa version, from docker container command,: rasa:1.10.11
Chatroom wigdet version? I don't know, I just use that what is instructions, so this is from index.html

<script src="https://npm-scalableminds.s3.eu-central-1.amazonaws.com/@scalableminds/chatroom@master/dist/Chatroom.js"/></script>

from chatroom.

hotzenklotz avatar hotzenklotz commented on July 27, 2024

Mhm, versions look alright.

Anything in the browser dev tools?

from chatroom.

InnoOmnia avatar InnoOmnia commented on July 27, 2024

Sorry, forget from previous comment, here they are
These came when I opened page
Chatroom.js:1181 [Deprecation] speechSynthesis.speak() without user activation is no longer allowed since M71, around December 2018. See https://www.chromestatus.com/feature/5687444770914304 for more details
o @ Chatroom.js:1181
DevTools failed to load SourceMap: Could not load content for https://npm-scalableminds.s3.eu-central-1.amazonaws.com/Chatroom.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load SourceMap: Could not load content for https://npm-scalableminds.s3.eu-central-1.amazonaws.com/Chatroom.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

Then these came when typed question to bot
Chatroom.js:1197 POST http://localhost:5005/webhooks/rest/webhook net::ERR_CONNECTION_REFUSED
(anonymous) @ Chatroom.js:1197
h @ Chatroom.js:520
(anonymous) @ Chatroom.js:520
t. @ Chatroom.js:520
l @ Chatroom.js:1197
a @ Chatroom.js:1197
(anonymous) @ Chatroom.js:1197
(anonymous) @ Chatroom.js:1197
(anonymous) @ Chatroom.js:1197
(anonymous) @ Chatroom.js:1195
h @ Chatroom.js:520
(anonymous) @ Chatroom.js:520
t. @ Chatroom.js:520
a @ Chatroom.js:1195
n @ Chatroom.js:1195
(anonymous) @ Chatroom.js:1195
(anonymous) @ Chatroom.js:1195
(anonymous) @ Chatroom.js:1195
d @ Chatroom.js:536
y @ Chatroom.js:536
b @ Chatroom.js:536
x @ Chatroom.js:536
_ @ Chatroom.js:536
C @ Chatroom.js:536
P @ Chatroom.js:536
Ln @ Chatroom.js:536
Hn @ Chatroom.js:536
exports.unstable_runWithPriority @ Chatroom.js:532
bl @ Chatroom.js:536
Yo @ Chatroom.js:536
Bn @ Chatroom.js:536
Chatroom.js:1197 Uncaught (in promise) TypeError: Failed to fetch
Promise.then (async)
l @ Chatroom.js:1197
a @ Chatroom.js:1197
(anonymous) @ Chatroom.js:1197
(anonymous) @ Chatroom.js:1197
(anonymous) @ Chatroom.js:1197
(anonymous) @ Chatroom.js:1195
h @ Chatroom.js:520
(anonymous) @ Chatroom.js:520
t. @ Chatroom.js:520
a @ Chatroom.js:1195
n @ Chatroom.js:1195
(anonymous) @ Chatroom.js:1195
(anonymous) @ Chatroom.js:1195
(anonymous) @ Chatroom.js:1195
d @ Chatroom.js:536
y @ Chatroom.js:536
b @ Chatroom.js:536
x @ Chatroom.js:536
_ @ Chatroom.js:536
C @ Chatroom.js:536
P @ Chatroom.js:536
Ln @ Chatroom.js:536
Hn @ Chatroom.js:536
exports.unstable_runWithPriority @ Chatroom.js:532
bl @ Chatroom.js:536
Yo @ Chatroom.js:536
Bn @ Chatroom.js:536

from chatroom.

hotzenklotz avatar hotzenklotz commented on July 27, 2024

Chatroom.js:1197 POST http://localhost:5005/webhooks/rest/webhook net::ERR_CONNECTION_REFUSED

Well, looks like you Docker container does not accept a connection from Chrome. Hard to say from afar what is causing this.

from chatroom.

InnoOmnia avatar InnoOmnia commented on July 27, 2024

ok, thanks for help

from chatroom.

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.