I have two JS-IPFS nodes running:
Node 1 - In the browser
Node 2 - Running on CLI
Node 1 and 2 are not directly connected.
In Node 1, I add a file to IPFS and get hash (H1).
In Node 2, I try
jsipfs cat H1. The call hangs and doesn’t return.
After waiting a long time and the call not returning I visit https://ipfs.io/ipfs/H1. The IPFS gateway CAN retrieve the file and displays it in the browser.
Furthermore, my call to
jsipfs cat H1 immediately returns the file.
Why can Node 2 not see the file until I have retrieved the file via the ipfs.io gateway?
(Also note, this issue is still present even if Node 2 is a Go-IPFS node)