3box-js icon indicating copy to clipboard operation
3box-js copied to clipboard

Should not throw "Key not found in database" exception

Open dkent600 opened this issue 5 years ago • 9 comments

During this:

    box = await Box.create(web3Provider);

(or was it in auth, sorry I don't recall)

an exception is thrown:

generating 2048-bit RSA keypair... r {code: "ERR_NOT_FOUND", type: "NotFoundError", name: "NotFoundError", cause: Error: NotFound at n (https://alchemy-add3boxcomments-jjgmo6.herokuapp.com/vendors~app.bundle-5…, message: "Key not found in database [/AFYBEIHYNASMHHI4KRVTUROLXFP465JWOJ7OYRYFYUYOM6TQ4LGWFMMT7M]", …}

spaceName is "DAOstack" Using [email protected] The web3provider is pointing at rinkeby.

dkent600 avatar Aug 12 '20 20:08 dkent600

@dkent600 if switching between versions you may see this error, i would try clearing browser storage for your application and trying 1.21.0 again, but let me if you see it more regularly

zachferland avatar Sep 02 '20 16:09 zachferland

Having to clear browser storage would be an issue for our users.

dkent600 avatar Sep 02 '20 16:09 dkent600

yes of course, just saying if going between versions in development you may be more likely to see this

is version 1.20.x already deployed to your users?

zachferland avatar Sep 02 '20 16:09 zachferland

actually, now that you mention it, our 1.20.* code hasn't gone out yet....

dkent600 avatar Sep 02 '20 16:09 dkent600

@zachferland I installed 1.21 and cleaned everything out and now in Box.create I get:

err {type: 'InitializationError', name: 'InitializationError', cause: undefined, message: 'Must provide a location for the database', stack: 'InitializationError: Must provide a location …/orbit-db-storage-adapter/src/index.js:49:17)'}

dkent600 avatar Sep 02 '20 18:09 dkent600

@dkent600 have not been able to replicate yet, what browser do you see this in?

and can you run 'npm list levelup level-js orbit-db-storage-adapter' to see what versions of these dependencies you have?

zachferland avatar Sep 03 '20 21:09 zachferland

@zachferland Any updates on this? Thanks.

dkent600 avatar Sep 10 '20 17:09 dkent600

hey @zachferland any update ? we are currently using 3box 1.22.2 and here is the dependency logs ├─┬ [email protected] │ ├─┬ [email protected] │ │ └─┬ [email protected] │ │ └── [email protected] deduped │ ├─┬ [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ └── [email protected] deduped │ ├─┬ [email protected] │ │ └─┬ [email protected] │ │ ├─┬ [email protected] │ │ │ └─┬ [email protected] │ │ │ └── [email protected] deduped │ │ └─┬ [email protected] │ │ └─┬ [email protected] │ │ └─┬ [email protected] │ │ └── [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ ├─┬ [email protected] │ │ │ └── [email protected] │ │ └── [email protected] deduped │ └─┬ [email protected] │ └─┬ [email protected] │ ├── [email protected] deduped │ └─┬ [email protected] │ └── [email protected] └─┬ @portis/[email protected] └─┬ @portis/[email protected] └─┬ [email protected] └─┬ [email protected] └── [email protected]

we are seeing the "Must provide a location for the database',...error msg .. please assist . is there an option needed to be passed to openBox ? https://github.com/daostack/alchemy/blob/ab5bc39e3b5e8e551fdb59a007107424284102e1/src/actions/profilesActions.ts#L120

orenyodfat avatar Nov 25 '20 10:11 orenyodfat