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

Box.create should not throw "denied permission" exception

Open dkent600 opened this issue 5 years ago • 2 comments

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:

  1. in the upper-right, login to an account (I'm using metamask)
  2. hover your mouse over the account address or name and in the dropdown, click "Full Profile"
  3. edit and submit the profile.

RESULT: The exception

dkent600 avatar Aug 11 '20 10:08 dkent600

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.

dkent600 avatar Aug 11 '20 16:08 dkent600

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

oed avatar Aug 12 '20 07:08 oed