Questions tagged [orbitdb]
21 questions
11
votes
2 answers
Jest "Could not locate module" if any dependency has "src" in path
In my react app, I am importing a module as follows:
import { isValidAddress } from 'orbit-db';
Some dependency of isValidAddress requires multicodec/src/base-table (see this line).
However, jest gives the following error:
Configuration…

Hannes Hertach
- 499
- 5
- 23
2
votes
1 answer
Orbit-db createInstance error "Path must be a string"
ipfs initializes, but I cannot manage to get an orbitdb instance.
const orbitdb = await OrbitDB.createInstance( ipfs );
Uncaught (in promise) TypeError: Path must be a string. Received "12D3KooWByXmww9fsJv46RddyFk4PJDfiuAY315MHQb9jAtyTBfW"
at…

Christian Lacdael
- 111
- 1
- 7
2
votes
0 answers
OrbitDB can't replicate database on different peer
I have forced with problem in my p2p database orbitdb. Everything works fine while I did not move the database to another server.
const ipfsOptions = {
repo: './ipfs'
}
const ipfs = await IPFS.create(ipfsOptions)
const orbitdb = await…

Zethuman
- 59
- 2
2
votes
2 answers
TypeError: IPFS is not a constructor
I'm trying to use Orbit-DB, So I follow the guide. But at the Create a database step, I get an error:
const ipfs = new IPFS()
^
TypeError: IPFS is not a constructor
Here is my full code:
const IPFS = require('ipfs')
const OrbitDB =…

Arthur Fontaine
- 176
- 1
- 11
1
vote
0 answers
Orbitdb and python
I have created a dApp with Flask that uses an sqlite3 local database. I am trying to remove the local database and create a decentralized one. I guess orbitdb is one of the possibilities. Although a page about the python3 implementation exists I…

Synodinos Tavagios
- 41
- 7
1
vote
1 answer
Orbit-db security, how to prevent illicit docstore updates
I have a specific use case for orbit-db but I am a bit fuzzy about a certain security implication.
I'm developing a web app where a user logs in through a Tronweb wallet account.
People can post questions, whereas other people can answer them and…

html_programmer
- 18,126
- 18
- 85
- 158
1
vote
1 answer
IPFSAccessController.save ERROR: Error: Deprecated, use .toString()
i'm only trying to launch the exemple of the app kit OrbitDB which is :
import OrbitDB from "orbit-db";
import IPFS from "ipfs";
async function main () {
// Create IPFS instance
const ipfsOptions = { repo : './ipfs', }
const ipfs = await…

Zahreddine Laidi
- 560
- 1
- 7
- 20
1
vote
1 answer
IPFS is not a constructor: Nodejs - IPFS/OrbitDB chatroom
I'm trying to build a Dapp with Nodejs and IPFS/OrbitDB every time, I try to start my App I get the error:
this.node = new IPFS({
^
TypeError: IPFS is not a constructor
This is my basic code without a specific Swarm:
const Ipfs =…

Beni
- 21
- 4
1
vote
0 answers
Why orbit-db data didn't save on global network
I am trying use orbit-db for share data in p2p network
but i don't why i can't get data in local pc
code 1 run in codesandbox
https://codesandbox.io/s/agitated-dew-vqekz
code 2 run in local pc
same as code 1 , but remove this line
hash = await…

bluelovers
- 1,035
- 2
- 10
- 22
0
votes
0 answers
IPFS: HTTPError: URL arg must be multibase encoded: selected encoding not supported
I want to create an OrbitDB database with a locally running IPFS daemon.
My code is based on a code sample published in a past discussion, with a few changes.
Here is my code (test.js):
import * as IpfsClient from 'ipfs-http-client'
import OrbitDB…

rapt
- 11,810
- 35
- 103
- 145
0
votes
0 answers
node.js - OrbitDB can't append data
I want to use orbit-db to create database using Nodejs but every time I create a database and try to add a new data it deletes the last element and I only can read the new one. I tried different types of databases (docs, Keyvalue, log, feed) but…

Mourad
- 101
- 1
0
votes
1 answer
how to implement user identity within program with orbitb-db? ownership and granting/revoking writes? decentralized, no 3d-party services and no ipns?
orbitdb says it cant do it https://github.com/orbitdb/field-manual/blob/684c7a1aa427c9acfe4d73cd28d64880e072b086/01_Tutorial/06_Identity_Permission.md#on-security
but users want to give/take writing permissions to dbs
how to implement user model…

Sergei-Udris
- 65
- 8
0
votes
1 answer
orbit-db (.createInstance ) fails - OpenError: IO error: /keystore/LOCK: No such file or directory
OpenError: IO error: /home/user/.Fennec/Beeblebrox/12D3KooWD9HKFwR4tTjFnfdgs8FeseWTnGvf5RJmZ79nEtbm83Ew/keystore/LOCK: No such file or directory
at…

Sergei-Udris
- 65
- 8
0
votes
1 answer
How add orbit-db in bundle?
I want create orbitdb bundle
In README on github i see this example
npm install orbit-db ipfs
const IPFS = require('ipfs')
const OrbitDB = require('orbit-db')
i am using es6 import
In example for browser on github
// Import IPFS module
import IPFS…

Sergey
- 418
- 1
- 7
- 21
0
votes
1 answer
Does Orbitdb have extra dependencies?
For Orbitdb to work with IPFS, perhaps there are some extra dependencies which are not mentioned anywhere specifically. I tried creating a simple key-value db referring from the docs:
orbit.js
const IPFS = require("ipfs");
const OrbitDB =…

hd3adcode
- 354
- 5
- 12