Closed BetterWorld-Liuser closed 1 year ago
I have debug for a while, finding out that ipfs desktop seems to response wantlist not in time or even randomly which cause the node client sluggishing.
but it still needs an option to put timeout config to control cat time.
@BetterWorld-Liuser you can use an AbortSignal to timeout the cat method:
fs.cat(cid, { signal: AbortSignal.timeout(30000) })
Most methods in the Helia ecosystem support a signal
config option where you can pass an AbortSignal.
For support inquiries, you may want to reach out on discuss.ipfs.tech.
Oops, seems like we needed more information for this issue, please comment with more details or this issue will be closed in 7 days.
This issue was closed because it is missing author input.
this is createHelia function
and i start a ipfs desktop and get libp2p nodeid:
/ip4/127.0.0.1/tcp/4001/p2p/12D3KooWPLGk8jupG9qVprUpB3Pv9XBdHJrvLPcy1h4Kv1U8B9x5
finally i
fs.cat
file pinned in ipfs desktop which cid isQmV3aSkBAXZtj2JNW6s5wEdq1QjLcW9mFP5xmNvPp634j4
it just costs a long time or even no response and no file downloaded. i am sure it connects to desktop ipfs because it print
Connected to 12D3KooWPLGk8jupG9qVprUpB3Pv9XBdHJrvLPcy1h4Kv1U8B9x5