Node's readable.pipe() does not forward errors of input streams to the writable stream. This causes the build request to just hang. stream.pipeline() available in Node >= 10.0 would solve this problem, but it seems more reasonable to just call req.destroy(error) on input stream errors for backwards compatibility.
Node's
readable.pipe()
does not forward errors of input streams to the writable stream. This causes the build request to just hang.stream.pipeline()
available in Node >= 10.0 would solve this problem, but it seems more reasonable to just callreq.destroy(error)
on input stream errors for backwards compatibility.