faressoft / faressoft/terminalizer
Error: This socket has been ended by the other party
- Dominant language
- JavaScript
- Stars
- 16.2k
- Forks
- 520
- PR merge metrics
- No merged PRs in 30d
Description
After updating node to LTS:
```
$ node -v
v14.15.1
$ npm -v
6.14.8
```
I get the following error when trying to run.
```powershell
$ terminalizer.ps1 record demo
The recording session is started
Press CTRL+D to exit and save the recording
Windows PowerShell
Copyright (C) 2016 Microsoft Corporation. All rights reserved.
Your Profile is located here:
C:\Users\xxx\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
Now Run:
C:\Users\xxx\Documents\PowerShell\Microsoft.PowerShell_profile.ps1
Loading personal and system profiles took 613ms.
(base) PS C:\Users\xxx\Documents\WindowsPowerShell> events.js:292
throw er; // Unhandled 'error' event
^
Error: This socket has been ended by the other party
at Socket.writeAfterFIN [as write] (net.js:456:14)
at WindowsTerminal._doWrite (C:\Users\xxx\AppData\Roaming\npm\node_modules\terminalizer\node_modules\@faressoft\node-pty-prebuilt\lib\windowsTerminal.js:113:30)
at WindowsTerminal._defer (C:\Users\xxx\AppData\Roaming\npm\node_modules\terminalizer\node_modules\@faressoft\node-pty-prebuilt\lib\windowsTerminal.js:155:24)
at WindowsTerminal._write (C:\Users\xxx\AppData\Roaming\npm\node_modules\terminalizer\node_modules\@faressoft\node-pty-prebuilt\lib\windowsTerminal.js:110:14)
at WindowsTerminal.Terminal.write (C:\Users\xxx\AppData\Roaming\npm\node_modules\terminalizer\node_modules\@faressoft\node-pty-prebuilt\lib\terminal.js:81:14)
at ReadStream.emit (events.js:315:20)
at addChunk (_stream_readable.js:309:12)
at readableAddChunk (_stream_readable.js:280:11)
at ReadStream.Readable.push (_stream_readable.js:223:10)
at TTY.onStreamRead (internal/stream_base_commons.js:188:23)
Emitted 'error' event on Socket instance at:
at emitErrorNT (net.js:1345:8)
at processTicksAndRejections (internal/process/task_queues.js:80:21) {
code: 'EPIPE'
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce `terminalizer.ps1 record demo` on Windows PowerShell with Node v14.15.1, then inspect `WindowsTerminal._doWrite`, `_defer`, and `_write` in `node-pty-prebuilt`, as shown in the stack trace. Done means the recording session handles the terminal/socket closure without emitting the unhandled EPIPE error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js, powershell
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100