You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
events.js:174
throw er; // Unhandled 'error' event
^
Error: write EPIPE
at WriteWrap.onWriteComplete [as oncomplete] (internal/stream_base_commons.js:66:16)
Emitted 'error' event at:
at Connection._handleError (/Users/drakedan/Documents/tupu/TPOverseer/node_modules/adbkit/lib/adb/connection.js:99:12)
at Socket.<anonymous> (/Users/drakedan/Documents/tupu/TPOverseer/node_modules/adbkit/lib/adb/connection.js:53:22)
at Socket.emit (events.js:194:15)
at errorOrDestroy (internal/streams/destroy.js:98:12)
at onwriteError (_stream_writable.js:436:5)
at onwrite (_stream_writable.js:461:5)
at _destroy (internal/streams/destroy.js:40:7)
at Socket._destroy (net.js:620:3)
at Socket.destroy (internal/streams/destroy.js:32:8)
at WriteWrap.onWriteComplete [as oncomplete] (internal/stream_base_commons.js:67:12)
Im still trying to figure out why an error emitted by connection could be "unhandled" because the only place where Connection were created is at client.js:
hey guys, I managed to solve this issue. the reason for the error Unhandled error at: Error: write EPIPE occurs is because the Connection object is shared and its error listener was removed once client done with connecting. but error event could still be emitted after connection is established. you can reproduce this bug like this:
create a sync service;
start pushing some file using sync.pushFile
cutting off device network before the pushing complete.
then you probably get an unhandled error. the way I solve this is add _this.connection.on('error', ...) inside sync
Im still trying to figure out why an error emitted by connection could be "unhandled" because the only place where Connection were created is at client.js:
and there is an
.on('error')
. so what Im missing here? pease help.The text was updated successfully, but these errors were encountered: