Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swarm.connect not happy with PeerId argument #230

Open
Hugo-Trentesaux opened this issue Apr 25, 2024 · 0 comments
Open

swarm.connect not happy with PeerId argument #230

Hugo-Trentesaux opened this issue Apr 25, 2024 · 0 comments

Comments

@Hugo-Trentesaux
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant