This repository was archived by the owner on Feb 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
This repository was archived by the owner on Feb 26, 2021. It is now read-only.
Regression in 0.10.0: readTimed is not a function #44
Copy link
Copy link
Closed
Description
Not really sure how to diagnose this, but we're seeing a regression in 0.10 (see trace below)
In a different test, some logic incorrectly appears to execute multiple times and/or some callbacks are called repeatedly -- hard to make much of the mocha output in the async scenario [EDIT: this appears to be a separate breaking change in js-libp2p-swarm v0.26.0]
Had to pin to 0.9.0 for the moment, let me know how I can help diagnose. The only place that this hits our code is here: https://github.com/mediachain/aleph/blob/master/src/peer/node.js#L143
Uncaught TypeError: readTimed is not a function
at more (node_modules/pull-reader/index.js:55:7)
at reader (node_modules/pull-reader/index.js:74:5)
at node_modules/pull-length-prefixed/lib/decode.js:23:5
at pull (node_modules/pull-stream/pull.js:41:14)
at node_modules/pull-stream/pull.js:22:22
at pull (node_modules/pull-stream/pull.js:41:14)
at MediachainNode.pingHandler (src/peer/node.js:144:5)
at matcher (node_modules/multistream-select/src/listener/select-handler.js:40:28)
at some (node_modules/multistream-select/src/listener/select-handler.js:71:7)
at done (node_modules/multistream-select/node_modules/async/internal/createTester.js:22:17)
at node_modules/multistream-select/node_modules/async/internal/once.js:12:16
at iteratorCallback (node_modules/multistream-select/node_modules/async/eachOf.js:52:13)
at node_modules/multistream-select/node_modules/async/internal/onlyOnce.js:12:16
at node_modules/multistream-select/node_modules/async/internal/createTester.js:35:21
at handlers.(anonymous function).matchFunc (node_modules/multistream-select/src/listener/select-handler.js:64:9)
at Object.matchExact [as matchFunc] (node_modules/multistream-select/src/listener/match-exact.js:5:3)
at some (node_modules/multistream-select/src/listener/select-handler.js:57:20)
at wrappedIteratee (node_modules/multistream-select/node_modules/async/internal/createTester.js:27:13)
at eachOfArrayLike (node_modules/multistream-select/node_modules/async/eachOf.js:57:9)
at exports.default (node_modules/multistream-select/node_modules/async/eachOf.js:9:5)
at node_modules/multistream-select/node_modules/async/internal/createTester.js:46:13
at matcher (node_modules/multistream-select/src/listener/select-handler.js:55:3)
at lp.decodeFromReader (node_modules/multistream-select/src/listener/select-handler.js:29:7)
at node_modules/pull-length-prefixed/lib/decode.js:93:9
at Object.cb (node_modules/pull-length-prefixed/lib/decode.js:105:5)
at drain (node_modules/pull-reader/index.js:39:14)
at more (node_modules/pull-reader/index.js:51:13)
at Object.reader.read (node_modules/pull-reader/index.js:95:7)
at readMessage (node_modules/pull-length-prefixed/lib/decode.js:100:10)
at Object.cb (node_modules/pull-length-prefixed/lib/decode.js:86:7)
at drain (node_modules/pull-reader/index.js:39:14)
at more (node_modules/pull-reader/index.js:51:13)
at node_modules/pull-reader/index.js:62:9
at node_modules/pull-reader/index.js:20:7
at node_modules/pull-reader/index.js:110:13
at drain (node_modules/stream-to-pull-stream/index.js:141:18)
at Stream.<anonymous> (node_modules/stream-to-pull-stream/index.js:150:5)
at readableAddChunk (node_modules/readable-stream/lib/_stream_readable.js:198:18)
at Stream.Readable.push (node_modules/readable-stream/lib/_stream_readable.js:157:10)
at Stream._handleData (node_modules/spdy-transport/lib/spdy-transport/stream.js:275:8)
at Stream._handleFrame (node_modules/spdy-transport/lib/spdy-transport/stream.js:122:10)
at Connection._handleFrame (node_modules/spdy-transport/lib/spdy-transport/connection.js:326:12)
at Parser.<anonymous> (node_modules/spdy-transport/lib/spdy-transport/connection.js:158:10)
at readableAddChunk (node_modules/readable-stream/lib/_stream_readable.js:198:18)
at Parser.Readable.push (node_modules/readable-stream/lib/_stream_readable.js:157:10)
at Parser.Transform.push (node_modules/readable-stream/lib/_stream_transform.js:123:32)
at next (node_modules/spdy-transport/lib/spdy-transport/protocol/base/parser.js:52:12)
at node_modules/spdy-transport/lib/spdy-transport/protocol/spdy/parser.js:57:5
at Parser.onFrameBody (node_modules/spdy-transport/lib/spdy-transport/protocol/spdy/parser.js:128:12)
at Parser.execute (node_modules/spdy-transport/lib/spdy-transport/protocol/spdy/parser.js:50:8)
at Parser._consume (node_modules/spdy-transport/lib/spdy-transport/protocol/base/parser.js:92:8)
at node_modules/spdy-transport/lib/spdy-transport/protocol/base/parser.js:60:12
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)
Metadata
Metadata
Assignees
Labels
No labels