Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Box.create should not throw "denied permission" exception #890

Open
dkent600 opened this issue Aug 11, 2020 · 2 comments
Open

Box.create should not throw "denied permission" exception #890

dkent600 opened this issue Aug 11, 2020 · 2 comments

Comments

@dkent600
Copy link

dkent600 commented Aug 11, 2020

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 3box@1.21.0
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
Copy link
Author

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.

@oed
Copy link
Member

oed commented Aug 12, 2020

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

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