Skip to content

libp2p:gossipsub:error createOutboundStream error TypeError: fns.shift(...) is not a function #305

@D4nte

Description

@D4nte

Getting this error message with @chainsafe/libp2p-gossipsub@3.3.0:

  libp2p:gossipsub:error createOutboundStream error TypeError: fns.shift(...) is not a function
    at rawPipe (file:///home/fryorcraken/src/status-im/js-waku/node_modules/it-pipe/src/index.ts:8:22)
    at pipe (file:///home/fryorcraken/src/status-im/js-waku/node_modules/it-pipe/src/index.ts:167:10)
    at new OutboundStream (file:///home/fryorcraken/src/status-im/js-waku/node_modules/@chainsafe/libp2p-gossipsub/src/stream.ts:22:3)
    at EventTarget.createOutboundStream (file:///home/fryorcraken/src/status-im/js-waku/node_modules/@chainsafe/libp2p-gossipsub/src/index.ts:681:16)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async file:///home/fryorcraken/src/status-im/js-waku/node_modules/@chainsafe/libp2p-gossipsub/src/index.ts:486:9 +0ms

The issue is because the rawStream passed is not a function:

const stream = new OutboundStream(await connection.newStream(this.multicodecs), (e) =>

Will try to investigate more later.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions