none error “Failed to load resource: net::ERR_CONNECTION_REFUSED” in Azure linux server RRS feed

  • Question

  • When opening this web page I get following error at debug console

    localhost:5005/ Failed to load resource: net::ERR_CONNECTION_REFUSED
    index.min.js:129 Error: xhr poll error 
        at u.i.onError (index.min.js:23)
        at l.<anonymous> (index.min.js:127)
        at l.r.emit (index.min.js:5)
        at l.onError (index.min.js:127)
        at index.min.js:127

    Here is my index.html

    paulii@vetbot:/var/www/html$ cat index.html
    <!doctype html>
    <div id="webchat"></div>
    <script src=""></script>
    // moro you can add a version tag if you need, e.g for version 0.11.5
        selector: "#webchat",
        initPayload: "/aloitus",
        customData: {"language": "en"}, // arbitrary custom data. Stay minimal as this will be added to the socket
        socketUrl: "http://localhost:5005",
        socketPath: "/",
        embedded: true,
        title: "Demo bot",
        subtitle: "Subtitle",
        params: {"storage": "session"} // can be set to "local"  or "session". details in storage section.

    Even I get that error I can see this text from index.html at web page    

    // moro you can add a version tag if you need, e.g for version 0.11.5

    Here netstat

    paulii@vetbot:/var/www/html$ sudo netstat -tnlp
    Active Internet connections (only servers)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
    tcp        0      0*               LISTEN      1628/mdsd
    tcp        0      0 *               LISTEN      851/systemd-resolve
    tcp        0      0    *               LISTEN      1153/sshd
    tcp6       0      0 :::5005                 :::*                    LISTEN      4716/docker-proxy
    tcp6       0      0 :::22                   :::*                    LISTEN      1153/sshd
    tcp6       0      0 :::444                  :::*                    LISTEN      5915/apache2

    My environment:
    rasa chatbot running in docker, port 5005 opened. Apache2 web server. All running in Azure Ubuntu 18.04 server.

    Same configuration works in my VirtualBox environment, but  not here in Azure

    Monday, September 28, 2020 3:30 PM