Open nbanmp opened 6 years ago
See also orbitdb/orbit-db#314, an excellent blogpost. Because orbitDB is built on js-ipfs
, and js-ipfs
has problems swarming, you may need to hardcode the node.js IPFS id into the browser's IPFS setup, so they can find each other.
Moving to the Field Manual for more discussion
I am trying to create a database in one place, and access it somewhere else, but I am having trouble.
I can create a database using the web example (https://ipfs.io/ipfs/QmeESXh9wPib8Xz7hdRzHuYLDuEUgkYTSuujZ2phQfvznQ/), but when I try to access it from node, the line
db = await orbitdb.log('/orbitdb/QmXiviShAQzzU6HFnBy8fC32GmmRXNPEqFoyiLjBzZMoBm/database')
hangs indefinitely. I can create the database from scratch in my code without any issues, but when I try to access it from the web example or from the same code on another computer, it fails.Any idea what I'm doing wrong?