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

Helia/remote-pinning-service: Aggregate Err #727

Open
Nkovaturient opened this issue Jan 28, 2025 · 0 comments
Open

Helia/remote-pinning-service: Aggregate Err #727

Nkovaturient opened this issue Jan 28, 2025 · 0 comments

Comments

@Nkovaturient
Copy link

Repo: https://github.com/ipfs-examples/helia-remote-pinning
where: helia-remote-pinning/resolver

Description:
After running bootstrapper, pinning-service, publisher, and resolver as sequentially--somehow the resolver is unable to fetch the content associated with the given CID

Possible Causes:

  1. Network Connectivity Issues:
    The resolver cannot connect to the pinning service or publisher nodes.

  2. CID Unavailability:
    The CID provided might not be pinned or accessible.

  3. Transport Filters:
    Misconfigured transport protocols (e.g., lack of WebSocket or WebRTC transports) prevent peer discovery and data transfer.

4.Bootstrapper Issues:
Bootstrapper might not have properly registered nodes or is inaccessible.

Image

Fixes:
Hence, After Configuring other transports at each node--

transports: [
    tcp(),
    webSockets(),
    webTransport(),
    circuitRelayTransport()
  ],

and Attempting to fetch the block with retries

 try {
    DOM.output().innerText = ''

    const cid = CID.parse(DOM.resolveInput().value ?? '')

    DOM.output().innerText += `Resolving ${cid}\n`

    
    for (let attempt = 0; attempt < 3; attempt++) {
      try {
        const data = await helia.blockstore.get(cid, {
          signal: AbortSignal.timeout(5000)
          
        })
        DOM.output().innerText += `✅Resolved: ${new TextDecoder().decode(data)}\n `
        return
      } catch (err) {
        DOM.output().innerText += `⚠ Attempt ${attempt + 1} failed: ${err}\n`
      }
    }

    throw new Error('❌Failed to resolve CID after 3 attempts. Refresh & Try again!')

it worked once a while on restart then the same filter-addrs and filter-protocols err persists.

Image

possible root: helia-delegated-routing-v1-http-api/packages/client/src/client.ts
line-362

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