Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

'datastore key does not have a valid format' error in ipfs-core #3833

Closed
Aragar199 opened this issue Aug 23, 2021 · 3 comments
Closed

'datastore key does not have a valid format' error in ipfs-core #3833

Aragar199 opened this issue Aug 23, 2021 · 3 comments

Comments

@Aragar199
Copy link

Aragar199 commented Aug 23, 2021

Same issue as here:

#1615

Version: 0.10.0
Platform: ipfs-core in Chrome
Subsystem: ipns

Type: Bug
Severity: Low

I was testing a clean install into a new directory while the original was still running and saw this error. Took me a few cycles to figure out what was going on since it was not clear to me from the error message.

Fix referenced above should just be applied to

if (!(key instanceof Key)) {
or error message changed to be more informative.

Steps to reproduce:

git clone https://github.com/austintgriffith/eth.build
npm install
npm start
open localhost:3000 in Chrome
in 'Network' subdirectory, create an ipfs module and wait for it to connect by changing color
mkdir && cd to different directory
git clone https://github.com/austintgriffith/eth.build
npm install
npm start
will prompt to open a different port like 3001
open localhost:3001 in different Chrome window
in 'Network' subdirectory, create an ipfs module and wait for it to connect by changing color
@welcome
Copy link

welcome bot commented Aug 23, 2021

Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review.
In the meantime, please double-check that you have provided all the necessary information to make this process easy! Any information that can help save additional round trips is useful! We currently aim to give initial feedback within two business days. If this does not happen, feel free to leave a comment.
Please keep an eye on how this issue will be labeled, as labels give an overview of priorities, assignments and additional actions requested by the maintainers:

  • "Priority" labels will show how urgent this is for the team.
  • "Status" labels will show if this is ready to be worked on, blocked, or in progress.
  • "Need" labels will indicate if additional input or analysis is required.

Finally, remember to use https://discuss.ipfs.io if you just need general support.

@achingbrain
Copy link
Member

The problem in #1615 was that there were two copies of interface-datastore in the dep tree so key instanceof Key fails when key is instantiated from one copy and Key is required from another.

You are running two isolated IPFS processes in the browser with (in theory) only one copy of interface-datastore each.

Could you please confirm that you only have one copy of interface-datastore in the dependency tree?

I've followed your instructions but am not seeing the error - could you share a stack trace please?

@Aragar199
Copy link
Author

Huh. Sorry for not including the stack trace, that's how I determined it was coming from publisher.js.

I restarted my comp and am not seeing the error anymore. Guessing my instructions are missing a step or it's just something on my local but I'm also not able to reproduce.

Thank you for taking the time to look in to this, I love submitting phantom issues in a public forum /s

This can be closed.

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

No branches or pull requests

2 participants