-
Notifications
You must be signed in to change notification settings - Fork 299
Conversation
N.b will not actually do any streaming until ipfs/kubo#5611 lands
fc8c62a
to
c203ede
Compare
Actually, that go PR was for adding streaming to one of the other |
I've added a |
License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
Currently getting these failures: 1) interface-ipfs-core tests
.files.lsReadableStream
should ls directory:
Uncaught TypeError: stream.on is not a function
at destroyer (node_modules/pump/index.js:26:10)
at /Users/alan/Code/protocol-labs/js-ipfs-http-client/node_modules/pump/index.js:70:12
at Array.map (<anonymous>)
at pump (node_modules/pump/index.js:67:26)
at send (src/files-mfs/ls-readable-stream.js:40:7)
at f (node_modules/once/once.js:25:25)
at streamToValue (src/utils/stream-to-json-value.js:30:5)
at concat (src/utils/stream-to-value.js:12:22)
at ConcatStream.<anonymous> (node_modules/concat-stream/index.js:37:43)
at finishMaybe (node_modules/concat-stream/node_modules/readable-stream/lib/_stream_writable.js:630:14)
at endWritable (node_modules/concat-stream/node_modules/readable-stream/lib/_stream_writable.js:638:3)
at ConcatStream.Writable.end (node_modules/concat-stream/node_modules/readable-stream/lib/_stream_writable.js:594:41)
at IncomingMessage.onend (_stream_readable.js:628:10)
at endReadableNT (_stream_readable.js:1094:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
2) interface-ipfs-core tests
.files.lsReadableStream
should ls -l directory:
Uncaught TypeError: stream.on is not a function
at destroyer (node_modules/pump/index.js:26:10)
at /Users/alan/Code/protocol-labs/js-ipfs-http-client/node_modules/pump/index.js:70:12
at Array.map (<anonymous>)
at pump (node_modules/pump/index.js:67:26)
at send (src/files-mfs/ls-readable-stream.js:40:7)
at f (node_modules/once/once.js:25:25)
at streamToValue (src/utils/stream-to-json-value.js:30:5)
at concat (src/utils/stream-to-value.js:12:22)
at ConcatStream.<anonymous> (node_modules/concat-stream/index.js:37:43)
at finishMaybe (node_modules/concat-stream/node_modules/readable-stream/lib/_stream_writable.js:630:14)
at endWritable (node_modules/concat-stream/node_modules/readable-stream/lib/_stream_writable.js:638:3)
at ConcatStream.Writable.end (node_modules/concat-stream/node_modules/readable-stream/lib/_stream_writable.js:594:41)
at IncomingMessage.onend (_stream_readable.js:628:10)
at endReadableNT (_stream_readable.js:1094:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
3) interface-ipfs-core tests
.files.lsPullStream
should ls directory:
Uncaught TypeError: stream.on is not a function
at destroyer (node_modules/pump/index.js:26:10)
at /Users/alan/Code/protocol-labs/js-ipfs-http-client/node_modules/pump/index.js:70:12
at Array.map (<anonymous>)
at pump (node_modules/pump/index.js:67:26)
at send (src/files-mfs/ls-readable-stream.js:40:7)
at f (node_modules/once/once.js:25:25)
at streamToValue (src/utils/stream-to-json-value.js:30:5)
at concat (src/utils/stream-to-value.js:12:22)
at ConcatStream.<anonymous> (node_modules/concat-stream/index.js:37:43)
at finishMaybe (node_modules/concat-stream/node_modules/readable-stream/lib/_stream_writable.js:630:14)
at endWritable (node_modules/concat-stream/node_modules/readable-stream/lib/_stream_writable.js:638:3)
at ConcatStream.Writable.end (node_modules/concat-stream/node_modules/readable-stream/lib/_stream_writable.js:594:41)
at IncomingMessage.onend (_stream_readable.js:628:10)
at endReadableNT (_stream_readable.js:1094:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
4) interface-ipfs-core tests
.files.lsPullStream
should ls -l directory:
Uncaught TypeError: stream.on is not a function
at destroyer (node_modules/pump/index.js:26:10)
at /Users/alan/Code/protocol-labs/js-ipfs-http-client/node_modules/pump/index.js:70:12
at Array.map (<anonymous>)
at pump (node_modules/pump/index.js:67:26)
at send (src/files-mfs/ls-readable-stream.js:40:7)
at f (node_modules/once/once.js:25:25)
at streamToValue (src/utils/stream-to-json-value.js:30:5)
at concat (src/utils/stream-to-value.js:12:22)
at ConcatStream.<anonymous> (node_modules/concat-stream/index.js:37:43)
at finishMaybe (node_modules/concat-stream/node_modules/readable-stream/lib/_stream_writable.js:630:14)
at endWritable (node_modules/concat-stream/node_modules/readable-stream/lib/_stream_writable.js:638:3)
at ConcatStream.Writable.end (node_modules/concat-stream/node_modules/readable-stream/lib/_stream_writable.js:594:41)
at IncomingMessage.onend (_stream_readable.js:628:10)
at endReadableNT (_stream_readable.js:1094:12)
at process._tickCallback (internal/process/next_tick.js:63:19) |
I think you have the wrong version of a module somewhere. Are you running IPFS with ipfs/js-ipfs#1734 ? It won't have the streaming |
After some discussion what you really wanted here was for the tests to be skipped since The tests are still useful for running with Be liberal in what you accept, etc. |
Yes, apologies for that. Although, I'm glad I didn't specify that now:
🎉 now it "works" for everybody! |
N.b will not actually do any streaming until ipfs/kubo#5611 is released.