[Pkg-javascript-devel] Bug#1016732: node-sockjs throws: TypeError: Cannot read properties of undefined (reading 'addEventListener') at WebSocketReceiver.setUp
Nilesh Patra
nilesh at debian.org
Sat Aug 6 13:24:13 BST 2022
Package: node-sockjs
Version: 0.3.24+~0.3.33-1
Severity: serious
X-Debbugs-Cc: eb at ericebrown.com
Hi,
On running shiny-server with 0.3.24+~0.3.33-1 it chokes with:
| [2022-08-06T04:59:03.613] [ERROR] shiny-server - Uncaught exception: TypeError: Cannot read properties of undefined (reading 'addEventListener')
| [2022-08-06T04:59:03.614] [ERROR] shiny-server - TypeError: Cannot read properties of undefined (reading 'addEventListener')
| at WebSocketReceiver.setUp (/usr/share/nodejs/sockjs/lib/trans-websocket.js:76:24)
| at new GenericReceiver (/usr/share/nodejs/sockjs/lib/transport.js:313:12)
| at new WebSocketReceiver (/usr/share/nodejs/sockjs/lib/trans-websocket.js:63:9)
| at ws.onopen (/usr/share/nodejs/sockjs/lib/trans-websocket.js:31:55)
| at WebSocket.dispatchEvent (/usr/share/nodejs/faye-websocket/lib/faye/websocket/api/event_target.js:24:30)
| at WebSocket._open (/usr/share/nodejs/faye-websocket/lib/faye/websocket/api.js:144:10)
| at Hybi.<anonymous> (/usr/share/nodejs/faye-websocket/lib/faye/websocket/api.js:35:49)
| at Hybi.emit (node:events:513:28)
| at Hybi._open (/usr/share/nodejs/websocket-driver/lib/websocket/driver/base.js:148:10)
| at Hybi.start (/usr/share/nodejs/websocket-driver/lib/websocket/driver/base.js:105:34)
| [2022-08-06T04:59:03.615] [INFO] shiny-server - Stopping listener on http://[::]:3838
| [2022-08-06T04:59:03.615] [INFO] shiny-server - Shutting down worker processes (with notification)
| /usr/lib/shiny-server/lib/main.js:391
| throw err;
| ^
|
| TypeError: Cannot read properties of undefined (reading 'addEventListener')
| at WebSocketReceiver.setUp (/usr/share/nodejs/sockjs/lib/trans-websocket.js:76:24)
| at new GenericReceiver (/usr/share/nodejs/sockjs/lib/transport.js:313:12)
| at new WebSocketReceiver (/usr/share/nodejs/sockjs/lib/trans-websocket.js:63:9)
| at ws.onopen (/usr/share/nodejs/sockjs/lib/trans-websocket.js:31:55)
| at WebSocket.dispatchEvent (/usr/share/nodejs/faye-websocket/lib/faye/websocket/api/event_target.js:24:30)
| at WebSocket._open (/usr/share/nodejs/faye-websocket/lib/faye/websocket/api.js:144:10)
| at Hybi.<anonymous> (/usr/share/nodejs/faye-websocket/lib/faye/websocket/api.js:35:49)
| at Hybi.emit (node:events:513:28)
| at Hybi._open (/usr/share/nodejs/websocket-driver/lib/websocket/driver/base.js:148:10)
| at Hybi.start (/usr/share/nodejs/websocket-driver/lib/websocket/driver/base.js:105:34)
|
| Node.js v18.6.0
While it is running perfectly ok _with 0.3.24-2_. Since this is
not a new release, there is a regression with the new changelog revision.
In particular, it seems that something is off with the coffeescript
generated files.
-- System Information:
Debian Release: bookworm/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 5.14.0-2-amd64 (SMP w/8 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages node-sockjs depends on:
pn node-faye-websocket <none>
ii node-uuid 8.3.2+~8.3.3-2
pn node-websocket-driver <none>
node-sockjs recommends no packages.
node-sockjs suggests no packages.
More information about the Pkg-javascript-devel
mailing list