field-manual icon indicating copy to clipboard operation
field-manual copied to clipboard

Unable to view db created on the web interface from program and vice versa

Open nbanmp opened this issue 7 years ago • 2 comments

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?

nbanmp avatar Mar 07 '18 00:03 nbanmp

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.

coyotespike avatar Mar 30 '18 15:03 coyotespike

Moving to the Field Manual for more discussion

aphelionz avatar Sep 27 '19 16:09 aphelionz