简体   繁体   English

与'ws://。/'的WebSocket连接失败:连接建立错误:net :: ERR_NAME_NOT_RESOLVED

[英]WebSocket connection to 'ws://./' failed: Error in connection establishment: net::ERR_NAME_NOT_RESOLVED

I dont have any knowledge in websockets, i am using a admin template from here 我对websockets没有任何了解,我在这里使用管理员模板

https://github.com/onokumus/Bootstrap-Admin-Template

i don't know did i do something wrong or how it is giving this problem but i am getting this error in the google chrome Console. 我不知道我做错了什么或它是如何给出这个问题,但我在谷歌Chrome控制台中收到此错误。

WebSocket connection to 'ws://./' failed: Error in connection establishment: net::ERR_NAME_NOT_RESOLVED

it is reffering this file modernizr-build.min.js:2 for error. 它正在修复此文件modernizr-build.min.js:2以获取错误。

Note: Error is only Showing in Google Chrome, but in Firebug this error is not showing up? 注意:错误仅在Google Chrome中显示,但在Firebug中此错误未显示?

Anyone Knows why i am getting this error and how to get rid of this error without compromising anything else in theme? 任何人都知道我为什么会收到此错误以及如何摆脱这个错误而不影响主题中的任何其他内容? 在此输入图像描述

在此输入图像描述

It is because you have to use the FQDN for the WS URL. 这是因为您必须将FQDN用于WS URL。 There is a good small sample code here: How to construct a WebSocket URI relative to the page URI? 这里有一个很好的小示例代码: 如何构建相对于页面URI的WebSocket URI?

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 chrome 扩展 WebSocket 连接到“ws://localhost:9090/”失败:连接建立错误:net::ERR_CONNECTION_REFUSED - chrome extension WebSocket connection to 'ws://localhost:9090/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED Websocket连接被拒绝。 WebSocket与'ws://127.0.0.1:2000 /'的连接失败:连接建立错误:net :: ERR_CONNECTION_REFUSED - Websocket connection refused. WebSocket connection to 'ws://127.0.0.1:2000/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED WebSocket 连接到“wss://ip:8080/”失败:连接建立错误:net::ERR_CONNECTION_REFUSED - WebSocket connection to 'wss://ip:8080/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED WebSocket 连接失败:连接建立时出错:.net::ERR_CONNECTION_REFUSED - WebSocket connection failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED 失败:连接建立时出错:.net::ERR_CONNECTION_REFUSED - Failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED 网络套接字上的ERR_NAME_NOT_RESOLVED - ERR_NAME_NOT_RESOLVED on a websocket WebSocket 连接失败:连接建立错误 - WebSocket Connection failed: error in connection establishment 无法加载资源:net :: ERR_NAME_NOT_RESOLVED - Failed to load resource: net::ERR_NAME_NOT_RESOLVED 连接建立错误:尝试建立并连接到Websocket服务器时,抛出net :: ERR_SSL_PROTOCOL_ERROR - Error in connection establishment: net::ERR_SSL_PROTOCOL_ERROR is thrown when trying establish and connect to a websocket server jQuery 数据表错误 net::ERR_NAME_NOT_RESOLVED - jQuery Data Table Error net::ERR_NAME_NOT_RESOLVED
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM