3***@qq.com
3***@qq.com
  • 发布:2025-12-19 14:40
  • 更新:2025-12-19 14:59
  • 阅读:12

unicloud-city-select使用时,微信小程序端无法加载城市选择插件,且报websocket的错误

分类:uniCloud

[system] Launch Time: 4908 ms
Error: SystemError (appServiceSDKScriptError)
{"errMsg":"closeSocket:fail Failed to execute 'close' on 'WebSocket': The code must be either 1000, or between 3000 and 4999. 1006 is neither."}
at Function.errorReport (WAServiceMainContext.js?t=wechat&v=3.11.3:1)
at Object.<anonymous> (WAServiceMainContext.js?t=wechat&v=3.11.3:1)
at Object.cb (WAServiceMainContext.js?t=wechat&v=3.11.3:1)
at J._privEmit (WAServiceMainContext.js?t=wechat&v=3.11.3:1)
at J.emit (WAServiceMainContext.js?t=wechat&v=3.11.3:1)
at WAServiceMainContext.js?t=wechat&v=3.11.3:1
at a (WAServiceMainContext.js?t=wechat&v=3.11.3:1)
at ze (WAServiceMainContext.js?t=wechat&v=3.11.3:1)
at Object.He (WAServiceMainContext.js?t=wechat&v=3.11.3:1)
at ae (WAServiceMainContext.js?t=wechat&v=3.11.3:1)(env: Windows,mp,1.06.2504060; lib: 3.11.3)
WebSocket connection to 'ws://172.20.12.185:8090/mp-weixin_aeqdfT' failed: (env: Windows,mp,1.06.2504060; lib: 3.11.3)
(anonymous) @ uni.api.esm.js:904
invokeApi @ uni.api.esm.js:330
promiseApi @ uni.api.esm.js:793
(anonymous) @ mp.esm.js:18
tryConnectSocket @ mp.esm.js:17
(anonymous) @ mp.esm.js:11
mp.esm.js:481 selectOpen
mp.esm.js:126 TypeError: Cannot read property 'open' of null
at openSelect (city-select.vue:64)
at callWithErrorHandling (vue.runtime.esm.js:1356)
at callWithAsyncErrorHandling (vue.runtime.esm.js:1363)
at Function.invoke (vue.runtime.esm.js:5577)
at f (VM2920 WASubContext.js:1)
at VM2920 WASubContext.js:1
at t.<anonymous> (VM2920 WASubContext.js:1)
at Function.<anonymous> (VM2920 WASubContext.js:1)
at p (WAServiceMainContext.js?t=wechat&v=3.11.3:1)
at WAServiceMainContext.js?t=wechat&v=3.11.3:1(env: Windows,mp,1.06.2504060; lib: 3.11.3)

2025-12-19 14:40 负责人:无 分享
已邀请:
DCloud_uniCloud_VK

DCloud_uniCloud_VK

用示例项目试试

要回复问题请先登录注册