“ Chrome调试控制台窗口上的http:/// localhost:5005 / socket.io /?&transport = polling&t =“错误

问题描述

我在下面显示了index.html在Azure Ubuntu 18.04服务器的apache2 Web服务器中运行。它应该在此http://aspabotti1.omnia.fi:444/网站上启动一个聊天机器人窗口小部件,但该聊天机器人窗口小部件未在其中显示

当我查看Chrome浏览器开发者控制台时,可以一直看到此错误,例如当前出现699个错误并在计数

http:// localhost:5005 / socket.io /?&transport = polling&t =

完全相同的配置在我的VirtualBox虚拟linux环境中有效,唯一的区别是在Ubuntu桌面环境中运行

我看过多个类似的问题页面,但仍未找到解决方法
我应该看什么日志?
我应该尝试哪些检查命令?
我应该尝试隔离哪些假人?

index.html

paulii@vetbot:/var/www/html$ cat index.html
<!doctype html>
<html>
<head>
</head>
<body>

<div id="webchat"></div>
<script src="https://cdn.jsdelivr.net/npm/rasa-webchat/lib/index.min.js"></script>
// poro you can add a version tag if you need,e.g for version 0.11.5 https://cdn.jsdelivr.net/npm/rasa-webchat@0.11.5/lib/index.min.js
<script>
  WebChat.default.init({
    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: "/socket.io/",embedded: true,title: "Demo bot",subtitle: "Subtitle",params: {"storage": "session"} // can be set to "local"  or "session". details in storage section.
  })
</script>

</body>
</html>

这是活跃的互联网连接

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.1:29130         0.0.0.0:*               LISTEN      1541/mdsd
tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      858/systemd-resolve
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1191/sshd
tcp6       0      0 :::5005                 :::*                    LISTEN      102848/docker-proxy
tcp6       0      0 :::22                   :::*                    LISTEN      1191/sshd
tcp6       0      0 :::444                  :::*                    LISTEN      105455/apache2

这是完整的错误消息

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
index.min.js:127 GET http://aspabotti1.omnia.fi:444/socket.io/?EIO=3&transport=polling&t=NJ4tXI1 404 (Not Found)

这是我以前的帖子,您可以在其中看到完整的环境配置和版本
Botfront webchat widget not showing at Azure environment

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)