Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rpc error: code = Unknown desc = log already exists #585

Open
shankhasm opened this issue Mar 27, 2023 · 3 comments
Open

rpc error: code = Unknown desc = log already exists #585

shankhasm opened this issue Mar 27, 2023 · 3 comments

Comments

@shankhasm
Copy link

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?

@sanderpick
Copy link
Member

sanderpick commented Mar 29, 2023

hey @shankhasm, sanity check, are you using the latest version of threads? we had a related issue a while back: #530 that has been solved.

Whenever I try connecting from a node to a public node

Tell me more here... how are you connecting?

@shankhasm
Copy link
Author

shankhasm commented Apr 5, 2023

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.

@shankhasm
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants