rpc error: code = Unknown desc = log already exists
We have designed an application on top of threadsdb, called Web3db. We represent the data on threadsdb in form of a relational database. Whenever I try connecting from a node to a public node, I get the error "rpc error: code = Unknown desc = log already exists". This is not an error from our application and it's coming from go-threads. Can someone help us figure out what exactly is causing this error?
hey @shankhasm, sanity check, are you using the latest version of threads? we had a related issue a while back: https://github.com/textileio/go-threads/issues/530 that has been solved.
Whenever I try connecting from a node to a public node
Tell me more here... how are you connecting?
Hey @sanderpick sorry for the late reply, the upcoming replies will be really quick from my end.
Answering your question- yes, we are using the latest version of go threads and by connecting we mean when we are trying to bootstrap from one node to a public node. We are trying to join the existing network of that public node.
More specifically, the error is coming from NewDBFromAddr() function in client.go in api/client directory. It is coming from the function call- args.LogKey.Bytes(). args is storing the optional argument db.NewManagedOption{}. The thing is that we are not providing that argument while calling the NewDbFromAddr() function.