3box-js
3box-js copied to clipboard
Should not throw "Key not found in database" exception
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 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
Having to clear browser storage would be an issue for our users.
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?
actually, now that you mention it, our 1.20.* code hasn't gone out yet....
@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 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?
Browser: Edge Chromium
+-- [email protected]
| +-- [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]
@zachferland Any updates on this? Thanks.
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