duplicator icon indicating copy to clipboard operation
duplicator copied to clipboard

Fixed "BufferedStream is already ended" error when duplicate server is down.

Open isul opened this issue 6 years ago • 2 comments

Fixed the following error when duplicate server is down. "BufferedStream is already ended"

isul avatar Feb 08 '19 06:02 isul

Doesn't seem to be fixed in v0.1.1.

I get

c:\XXX\node_modules\bufferedstream\index.js:317
      throw new Error('BufferedStream is already ended');
      ^

Error: BufferedStream is already ended
    at BufferedStream.<anonymous> (c:\XXX\node_modules\bufferedstream\index.js:317:13)
    at c:\XXX\node_modules\duplicator\index.js:98:16
    at Socket.<anonymous> (c:\XXX\node_modules\duplicator\index.js:69:7)
    at Socket.emit (events.js:314:20)
    at emitErrorNT (internal/streams/destroy.js:106:8)
    at emitErrorCloseNT (internal/streams/destroy.js:74:3)
    at processTicksAndRejections (internal/process/task_queues.js:80:21)

joerg-walter-de avatar Oct 07 '20 11:10 joerg-walter-de

Currently, the original author of this program did not apply the code I modified.

Try the source code from the link below where the problem is fixed. https://github.com/isul/duplicator

Doesn't seem to be fixed in v0.1.1.

I get

c:\XXX\node_modules\bufferedstream\index.js:317
      throw new Error('BufferedStream is already ended');
      ^

Error: BufferedStream is already ended
    at BufferedStream.<anonymous> (c:\XXX\node_modules\bufferedstream\index.js:317:13)
    at c:\XXX\node_modules\duplicator\index.js:98:16
    at Socket.<anonymous> (c:\XXX\node_modules\duplicator\index.js:69:7)
    at Socket.emit (events.js:314:20)
    at emitErrorNT (internal/streams/destroy.js:106:8)
    at emitErrorCloseNT (internal/streams/destroy.js:74:3)
    at processTicksAndRejections (internal/process/task_queues.js:80:21)

isul avatar Oct 08 '20 00:10 isul