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.
The
swarm.connect
function should take an argumentmultiaddrOrPeerId
that can beMultiaddr | 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.