ipfs / js-ipfs

IPFS implementation in JavaScript
https://js.ipfs.tech
Other
7.43k stars 1.25k forks source link

Unable to connect browser ipfs node with ipfs-cluster running in local #4348

Closed logesh2496 closed 1 year ago

logesh2496 commented 1 year ago

Severity:

High

Description:

After successfully connected to swarm address

const peerID = peerIdFromString('peerID here'); // import { peerIdFromString } from '@libp2p/peer-id await ipfs.swarm.connect(peerID); // This throws error

Steps to reproduce the error:

  1. Create a ipfs node on browser with /dns4/wrtc-star1.par.dwebops.pub/tcp/443/wss/p2p-webrtc-star as swarm
  2. Console will print "Swarm Listening: /dns4/wrtc-star1.par.dwebops.pub/tcp/443/wss/p2p-webrtc-star/p2p/peerid which is correct
  3. Now do ipfs.swarm.connect(peerID)
  4. This produces error: The dial request has no valid addresses
welcome[bot] commented 1 year ago

Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review. In the meantime, please double-check that you have provided all the necessary information to make this process easy! Any information that can help save additional round trips is useful! We currently aim to give initial feedback within two business days. If this does not happen, feel free to leave a comment. Please keep an eye on how this issue will be labeled, as labels give an overview of priorities, assignments and additional actions requested by the maintainers:

Finally, remember to use https://discuss.ipfs.io if you just need general support.

SgtPooki commented 1 year ago

Hello @logesh2496,

js-ipfs is being deprecated in favor of Helia. You can learn more about this deprecation and the corresponding migration guide here.

This current bug or feature request will not be addressed in js-ipfs due to its deprecation. We believe the issue has been resolved in Helia though 😊

As a result, we are going to close this issue. If you think we have done this in error, please feel to reopen with any comments in the next week as we will circle back on the reopened issues.

We hope you will consider Helia for your IPFS in JS needs. We look forward to engaging with you more there.

Thanks, @ipfs/helia-dev

logesh2496 commented 1 year ago

Thanks @SgtPooki

Can you point me to these documentation resources:

  1. Pinning files (similar to https://github.com/ipfs/js-ipfs/blob/master/docs/core-api/PIN.md#ipfspinaddipfspath-options)
  2. Connecting to a cluster

on helia? I have been exploring but couldn't find any.

Thanks again.