Thanks Mike, Yes, I changed npm registry from taobao which host in China to npm official registry, the package is OK. What about question 2 and question 3.
> On Jan 19, 2023, at 00:54, Michael Jumper <[email protected]> wrote: > > On Wed, Jan 11, 2023 at 10:32 PM 陈鹏鹏 <[email protected] > <mailto:[email protected]>> wrote: > Hi there, > > I’m developing web app based on guacamole v1.4.0, bellow is the detail info: > > - guacd v1.4 running in docker > - backend endpoint with guacamole-common 1.4 > - frontend with guacamole-common-js 1.4 and write with vue > > When I connect to the Remote Desktop with ssh, the screen is back and there > are errors in the console says: > > guacamole-common.js?8a3c:1120 Uncaught TypeError: Cannot read properties of > undefined (reading 'onblob') > at blob (guacamole-common.js?8a3c:1120:1) > at tunnel.oninstruction (guacamole-common.js?8a3c:1607:1) > at socket.onmessage (guacamole-common.js?8a3c:8561:1) > blob @ guacamole-common.js?8a3c:1120 > tunnel.oninstruction @ guacamole-common.js?8a3c:1607 > socket.onmessage @ guacamole-common.js?8a3c:8561 > > The code with above errors located in guacamole-common-js is > GucamoleClient#instructionhandlers#blob, seems the variable streams is not > initialized leads result of the variable stream is undefined. I add some logs > as bellow > > "blob": function(parameters) { > > // Get stream > var stream_index = parseInt(parameters[0]); > var data = parameters[1]; > var stream = streams[stream_index]; > console.log("parameters:",parameters) > console.log('stream_Index',stream_index) > console.log('streams',streams) > // Write data > stream.onblob(data); > > }, > The console output is: > <PastedGraphic-2.png> > > > This is not guacamole-common-js 1.4.0. The code in question has a check > around the "onblob" call here: > > https://github.com/apache/guacamole-client/blob/1.4.0/guacamole-common-js/src/main/webapp/modules/Client.js#L1048-L1050 > > <https://github.com/apache/guacamole-client/blob/1.4.0/guacamole-common-js/src/main/webapp/modules/Client.js#L1048-L1050> > > That check has been in place since 0.9.9 (7 years ago): > > https://github.com/apache/guacamole-client/commit/e6d6c5c56ea854db20f537c827b53342f75fcc5c > > <https://github.com/apache/guacamole-client/commit/e6d6c5c56ea854db20f537c827b53342f75fcc5c> > > - Mike
