ipfs / ipfs/helia

Helia/remote-pinning-service: Aggregate Err

Open
#727 1 comment 0 reactions 1 assignee Claimed by @achingbrain View on GitHub
status/in-progress
Dominant language
TypeScript
Stars
1.3k
Forks
159
Avg merge
2h 11m
Merged PRs (30d)
16

Description

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](https://github.com/user-attachments/assets/5de499ec-87dd-4242-a18f-ce37abb765c9)

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](https://github.com/user-attachments/assets/da63efd5-19b4-471c-8309-aab04c6eb7c5)

possible root: [helia-delegated-routing-v1-http-api](https://github.com/ipfs/helia-delegated-routing-v1-http-api/tree/main)/[packages](https://github.com/ipfs/helia-delegated-routing-v1-http-api/tree/main/packages)/[client](https://github.com/ipfs/helia-delegated-routing-v1-http-api/tree/main/packages/client)/[src](https://github.com/ipfs/helia-delegated-routing-v1-http-api/tree/main/packages/client/src)/client.ts
line-362

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.