orbitdb / field-manual

The Offical User's Guide to OrbitDB
210 stars 44 forks source link

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

Open nbanmp opened 6 years ago

nbanmp commented 6 years ago

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?

coyotespike commented 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.

aphelionz commented 5 years ago

Moving to the Field Manual for more discussion