GET http://10.136.74.118:8080/sockjs-node/info?t=1652668758843 net::ERR_CONNECTION_TIMED_OUT

在`node_modules`下的`sockjs-client/dist/sockjs.js`文件中,通过注释第1609行的`self.xhr.send(payload)`可以阻止热更新。然而,这种方法的副作用是会导致热更新功能失效,对于持续开发和调试带来不便。
  • node_modules 文件下,
  • sockjs-client / dist / sockjs.js 文件
  • 注释第1609行 self.xhr.send(payload) 即可;
  • 缺点:热更新会失效

在这里插入图片描述

正在检查服务器状态: http://localhost:8080/api/health webSocketService.ts:155 GET http://localhost:8080/api/health net::ERR_ABORTED 401 (Unauthorized) checkServerStatus @ webSocketService.ts:155 connect @ webSocketService.ts:223 (匿名) @ main.ts:75 webSocketService.ts:169 服务器状态检查: 认证失败,但仍允许尝试WebSocket连接 webSocketService.ts:90 没有可用的refreshToken用于刷新 webSocketService.ts:248 尝试连接WebSocket: ws://localhost:8080/websocket/realtime (时间: 2025-08-26T01:36:08.129Z) webSocketService.ts:155 提取 加载失败:GET "http://localhost:8080/api/health". checkServerStatus @ webSocketService.ts:155 connect @ webSocketService.ts:223 (匿名) @ main.ts:75 webSocketService.ts:253 WebSocket connection to 'ws://localhost:8080/websocket/realtime' failed: (匿名) @ webSocketService.ts:253 webSocketService.ts:304 WebSocket错误 (连接尝试: 1/10): 类型: error, 目标: [object WebSocket] socket.onerror @ webSocketService.ts:304 webSocketService.ts:324 WebSocket连接关闭 (连接尝试: 0/10): 代码: 1006, 原因: 无原因, 是主动关闭: false webSocketService.ts:489 尝试重新连接WebSocket (1/10)... 等待 2000ms webSocketService.ts:136 正在检查服务器状态: http://localhost:8080/api/health webSocketService.ts:155 GET http://localhost:8080/api/health net::ERR_ABORTED 401 (Unauthorized) checkServerStatus @ webSocketService.ts:155 connect @ webSocketService.ts:223 (匿名) @ webSocketService.ts:494 setTimeout reconnect @ webSocketService.ts:493 socket.onclose @ webSocketService.ts:337 webSocketService.ts:155 提取 加载失败:GET "http://localhost:8080/api/health". checkServerStatus @ webSocketService.ts:155 connect @ webSocketService.ts:223 (匿名) @ webSocketService.ts:494 setTimeout reconnect @ webSocketService.ts:493 socket.onclose @ webSocketService.ts:337 webSocketService.ts:169 服务器状态检查: 认证失败,但仍允许尝试WebSocket连接 webSocketService.ts:90 没有可用的refreshToken用于刷新 webSocketService.ts:248 尝试连接WebSocket: ws://localhost:8080/websocket/realtime (时间: 2025-08-26T01:36:10.186Z) webSocketService.ts:253 WebSocket connection to 'ws://localhost:8080/websocket/realtime' failed: (匿名) @ webSocketService.ts:253 webSocketS
08-27
pybullet build time: Jan 29 2025 23:19:57 Traceback (most recent call last): File "/home/return/Linker_Hand_Pybullet_ros/src/linker_hand_sim/linker_hand_pybullet_ros/scripts/linker_hand_pybullet.py", line 349, in <module> rospy.init_node("linker_hand_pybullet", anonymous=True) File "/opt/ros/noetic/lib/python3/dist-packages/rospy/client.py", line 326, in init_node _init_node_params(argv, name) File "/opt/ros/noetic/lib/python3/dist-packages/rospy/client.py", line 186, in _init_node_params set_param(rosgraph.names.PRIV_NAME + param_name, param_value) File "/opt/ros/noetic/lib/python3/dist-packages/rospy/client.py", line 540, in set_param _param_server[param_name] = param_value #MasterProxy does all the magic for us File "/opt/ros/noetic/lib/python3/dist-packages/rospy/msproxy.py", line 136, in __setitem__ self.target.setParam(rospy.names.get_caller_id(), resolved_key, val) File "/usr/lib/python3.8/xmlrpc/client.py", line 1109, in __call__ return self.__send(self.__name, args) File "/opt/ros/noetic/lib/python3/dist-packages/rospy/core.py", line 696, in _ServerProxy__request return xmlrpcclient.ServerProxy._ServerProxy__request( File "/usr/lib/python3.8/xmlrpc/client.py", line 1450, in __request response = self.__transport.request( File "/usr/lib/python3.8/xmlrpc/client.py", line 1153, in request return self.single_request(host, handler, request_body, verbose) File "/usr/lib/python3.8/xmlrpc/client.py", line 1165, in single_request http_conn = self.send_request(host, handler, request_body, verbose) File "/usr/lib/python3.8/xmlrpc/client.py", line 1278, in send_request self.send_content(connection, request_body) File "/usr/lib/python3.8/xmlrpc/client.py", line 1308, in send_content connection.endheaders(request_body) File "/usr/lib/python3.8/http/client.py", line 1251, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/usr/lib/python3.8/http/client.py", line 1011, in _send_output self.send(msg) File "/usr/lib/python3.8/http/client.py", line 951, in send self.connect() File "/usr/lib/python3.8/http/client.py", line 922, in connect self.sock = self._create_connection( File "/usr/lib/python3.8/socket.py", line 808, in create_connection raise err File "/usr/lib/python3.8/socket.py", line 796, in create_connection sock.connect(sa) ConnectionRefusedError: [Errno 111] Connection refused
最新发布
12-09
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值