Closed Zibri closed 4 years ago
Cant' reproduce on my machine (macOS 10.15.3 /Chrome 80.0.3987.132). Please edit the issue and add the os/browser/ttyd/libwebsockets version info.
console log: (after issuing rz and sending a jpg image) ttyd 1.6.0-c15cfb7 (libwebsockets 3.2.0)
[ttyd] Websocket connection opened
(index):1 Unhandled header! T Object
_consume_header @ (index):1
(index):1 [ttyd] zmodem consume: Error: Unhandled header: ZRPOS
at i.Session.Send._consume_header ((index):1)
at i.Session.Send._parse_and_consume_header ((index):1)
at i.Session.Send._consume_first ((index):1)
at i.Session.Send.consume ((index):1)
at i.Sentry.consume ((index):1)
at ae.consume ((index):1)
at le.onSocketData ((index):1)
handleError @ (index):1
(index):1 Unhandled header! T {_bytes4: Array(4)} {ZRINIT: ƒ}
_consume_header @ (index):1
_parse_and_consume_header @ (index):1
_consume_first @ (index):1
consume @ (index):1
consume @ (index):1
consume @ (index):1
onSocketData @ (index):1
(index):1 [ttyd] zmodem consume: Error: Unhandled header: ZRPOS
at i.Session.Send._consume_header ((index):1)
at i.Session.Send._parse_and_consume_header ((index):1)
at i.Session.Send._consume_first ((index):1)
at i.Session.Send.consume ((index):1)
at i.Sentry.consume ((index):1)
at ae.consume ((index):1)
at le.onSocketData ((index):1)
handleError @ (index):1
consume @ (index):1
onSocketData @ (index):1
Local machine browser: Chrome latest version: Version 80.0.3987.132 (Official Build) (64-bit)
https://github.com/tsl0922/ttyd/issues/239#issuecomment-536297202
@Zibri can you test if the script from the above comment works?
Should be fixed on master now, the web terminal will recover from zmodem error.
Install on the host: http://archive.ubuntu.com/ubuntu/pool/universe/l/lrzsz/lrzsz_0.12.21-8build1_amd64.deb
To send a file from the client browser to the host, all you need is to use "rz" To send the file "test" to the browser for download all you need is: sz test
This kind of works, the file is successfully sent and received but then ttyd locks-up.