Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

前端运行不成功 #10

Open
fushengwuyu opened this issue Apr 8, 2020 · 4 comments
Open

前端运行不成功 #10

fushengwuyu opened this issue Apr 8, 2020 · 4 comments

Comments

@fushengwuyu
Copy link

作者你好,按照你的方式,我后端部署了,前端部署后,只展示body中的几行标题,请问这是怎么回事呢。

@pengyou200902
Copy link
Owner

说明socket连接不成功,你看看浏览器控制台报的什么错,如果是谷歌或者火狐一类的浏览器应该是快捷键F12打开选择控制台页面

@myboyliu
Copy link

我的也是web页面错误。F12控制台可以看到如下错误:
Access to XMLHttpRequest at 'http://localhost:5000/socket.io/?EIO=3&transport=polling&t=N6vtpwm' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

@pengyou200902
Copy link
Owner

可能是rasa旧版的bug,在处理--cors "*"参数(该参数作用是允许跨域请求)的时候出的问题,你可以试试pip install rasa==1.2.5,安装1.2.5版本的rasa尝试一下

@pengyou200902
Copy link
Owner

另外提一下,前端html代码中,聊天窗属性hideWhenNotConnected:true,如果设置为false,那么在websocket连接失败的情况下,右下角也会出现那个按钮。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants