uni-app-sockjs-stomp icon indicating copy to clipboard operation
uni-app-sockjs-stomp copied to clipboard

Uni-App H5 环境下报错:Uncaught (in promise) RangeError: Maximum call stack size exceeded

Open mtozhk opened this issue 5 years ago • 2 comments

在app模式下一切正常,包括连接stomp。但在H5下就会报错: Uncaught (in promise) RangeError: Maximum call stack size exceeded at new t (index.umd.min.js:1) at p (index.umd.min.js:1) at index.umd.min.js:1 at x (index.umd.min.js:1) at index.umd.min.js:1 at new Promise () at new F (_export.js:36) at Object.connectSocket (index.umd.min.js:1) at new WebSocket (websocket-uni.js:6) at new t (index.umd.min.js:1)

程序连接ws服务器,除了没用sockjs,其他与示例基本相同: var socket = new WebSocket(hostWsAddr); ...

mtozhk avatar Jan 21 '20 03:01 mtozhk

请问你解决了吗,是怎么解决的

wuufeii avatar Nov 16 '20 01:11 wuufeii

在app模式下一切正常,包括连接stomp。但在H5下就会报错: Uncaught (in promise) RangeError: Maximum call stack size exceeded at new t (index.umd.min.js:1) at p (index.umd.min.js:1) at index.umd.min.js:1 at x (index.umd.min.js:1) at index.umd.min.js:1 at new Promise () at new F (_export.js:36) at Object.connectSocket (index.umd.min.js:1) at new WebSocket (websocket-uni.js:6) at new t (index.umd.min.js:1)

程序连接ws服务器,除了没用sockjs,其他与示例基本相同: var socket = new WebSocket(hostWsAddr); ...

在app模式下一切正常,包括连接stomp。但在H5下就会报错: Uncaught (in promise) RangeError: Maximum call stack size exceeded at new t (index.umd.min.js:1) at p (index.umd.min.js:1) at index.umd.min.js:1 at x (index.umd.min.js:1) at index.umd.min.js:1 at new Promise () at new F (_export.js:36) at Object.connectSocket (index.umd.min.js:1) at new WebSocket (websocket-uni.js:6) at new t (index.umd.min.js:1)

程序连接ws服务器,除了没用sockjs,其他与示例基本相同: var socket = new WebSocket(hostWsAddr); ...

为什么我在安卓模拟器就报TypeError: Cannot read property 'prototype' of undefined

zengguoying avatar Jul 14 '22 01:07 zengguoying