Skip to content

swarm.connect not happy with PeerId argument #230

@Hugo-Trentesaux

Description

@Hugo-Trentesaux

The swarm.connect function should take an argument multiaddrOrPeerId that can be Multiaddr | PeerId. However, it complains when receiving a PeerId: HTTPError: failed to parse multiaddr "12D3KooWBusr11HGqzKu6C789vFWibV4DoTBiwZi7N5Gtkepsp9v": must begin with /.

I guess the problem comes from the createConnect function which is missing conversion from peerid to multiaddr.

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