Uncaught DOMException: Failed to construct 'WebSocket': The URL 'xxx.xxx.com/' is invalid.
2020-02-03 04:07
1366 查看
Uncaught DOMException: Failed to construct 'WebSocket': The URL 'xxx.xxx.com/' is invalid.
出现这个问题是构造 WebSocket失败了。
js代码改成
//实现化WebSocket对象,指定要连接的服务器地址与端口 建立连接
//等同于socket = new WebSocket(path+"/websocket/service8888");
socket = new WebSocket("xxx://192.168.5.7:8080/"+path+"/websocket/service8888");
在实际部署中需要放过对socket连接的拦截。
转载于:https://www.cnblogs.com/andy-lehhaxm/p/10601465.html
- 点赞
- 收藏
- 分享
- 文章举报
相关文章推荐
- nested exception is com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method queryHistoryAver
- Retrieving the COM class factory for component with CLSID {000209FF-XXX} failed due to the following error: 80070005 Access is denied.
- Uncaught DOMException: Failed to execute 'insertBefore' on 'Node': The node before which the new nod
- nested exception is com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method findPage in the
- SharePoint 2010 Server Error: The URL "XXX" is invalid, it may refer to a nonexistent file or ...
- 关于dubbo调度时出现Request processing failed; nested exception is com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method insertTestTb in the service cn.cuibusi.core.service.TestTbService.的解决办法
- Uncaught exception com_exception with message Failed to create COM object
- Invalid argument during startup: Failed to open the .conf file: redis.windows.conf CWD=C:\Users\xxx
- System.InvalidOperationException: Operation is not valid due to the current state of the object.
- 解决org.apache.ibatis.binding.BindingException: Type interface xxx is not known to the MapperRegistry
- Failed to fetch URL https://dl-ssl.google.com CPU acceleration status: HAX kernel module is not installed!
- fix errors 1088: “Failed to execute request because the App-Domain could not be created. Error: 0x80070005 Access is denied” and 1334: “Exception: System.IO.FileLoadException”
- com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method 错误处理
- 'The NIB data is invalid.' foruncaught exception 'NSInternalInconsistencyException'
- Jquery 报错 Uncaught InvalidStateError: Failed to set the 'value' property on 'HTMLInputElement':
- Failed to initialize the ORB [Root exception is org.omg.CORBA.INITIALIZE: Unable to init plugins vm
- InvalidOperationException: Operation is not valid due to the current state of the object
- Uncaught InvalidStateError: Failed to read the 'selectionDirection' property from 'HTMLInputElement'
- The servlets named [xxx] and [com.web.xxx] are both mapped to the url-pattern
- php错误:Uncaught exception com_exception with message Failed to create COM object