3box-js
3box-js copied to clipboard
Box.create should not throw "denied permission" exception
During this:
box = await Box.create(web3Provider);
an exception is thrown (and not caught):
generating 2048-bit RSA keypair... Uncaught (in promise) cause: undefined message: "The user denied permission to access the database." name: "OpenError" stack: "OpenError: The user denied permission to access the database.↵
spaceName is "DAOstack"
Using [email protected]
The web3provider is pointing at rinkeby.
You can reproduce here: https://alchemy-add3boxcomments-jjgmo6.herokuapp.com/
STEPS:
- in the upper-right, login to an account (I'm using metamask)
- hover your mouse over the account address or name and in the dropdown, click "Full Profile"
- edit and submit the profile.
RESULT: The exception
I was able to get past the error by enabling third-party cookies. Is this new?
Would be great if you could pro-actively let users know via a UI prompt if this is going to be a requirement and third-party cookies are found to be blocked. Otherwise they have no clue.
It's new yes, however we did add code to detect if there isn't support for third-party cookies and in that case not enable this feature. Might be a bug in that code.
cc @zachferland