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

ERR_UNSUPPORTED_PROTOCOL for client in helia-lan-discovery #296

Open
macterra opened this issue Feb 20, 2024 · 0 comments
Open

ERR_UNSUPPORTED_PROTOCOL for client in helia-lan-discovery #296

macterra opened this issue Feb 20, 2024 · 0 comments

Comments

@macterra
Copy link

using Node.js v20.11.1

npm run client fails with this error:

file:///home/david/self/helia-examples/node_modules/@libp2p/multistream-select/dist/src/select.js:95
    throw new CodeError('protocol selection failed', 'ERR_UNSUPPORTED_PROTOCOL');
          ^

CodeError: protocol selection failed
    at Module.select (file:///home/david/self/helia-examples/node_modules/@libp2p/multistream-select/dist/src/select.js:95:11)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async ConnectionImpl.newStream [as _newStream] (file:///home/david/self/helia-examples/node_modules/libp2p/dist/src/upgrader.js:330:50)
    at async ConnectionImpl.newStream (file:///home/david/self/helia-examples/node_modules/libp2p/dist/src/connection/index.js:94:24) {
  code: 'ERR_UNSUPPORTED_PROTOCOL',
  props: {}
}

I'm running npm run server in another terminal on the same machine.

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