Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to create element ropsten did locally #416

Open
OR13 opened this issue Jun 12, 2022 · 7 comments
Open

Unable to create element ropsten did locally #416

OR13 opened this issue Jun 12, 2022 · 7 comments

Comments

@OR13
Copy link
Sponsor Member

OR13 commented Jun 12, 2022

app seems broken.

@OR13
Copy link
Sponsor Member Author

OR13 commented Jun 12, 2022

Observed this:

error - unhandledRejection: {
  code: -32603,
  message: 'Unknown Error: user project is inactive\n',
  data: { originalError: {} }
}

Fixed by updating the infura ethereum rpc env value.

@OR13
Copy link
Sponsor Member Author

OR13 commented Jun 12, 2022

Observed this, reproduced consistently when trying to resolve a DID locally.

Screen Shot 2022-06-12 at 9 14 26 AM

This is caused by this awkward bit:

  useEffect(() => {
    async function loadPageData() {
      if (did !== undefined) {
        const res1: any = await resolve(did);
        // FIXME: throwing 500
        // const res2: any = await getOperations(did);
        setDidDocument(res1.didDocument);
        // setDidDocumentOperations(res2.operations);
        setIsLoading(false);
      }
    }
    loadPageData();
  }, [did, setDidDocument, setIsLoading]);

@OR13
Copy link
Sponsor Member Author

OR13 commented Jun 12, 2022

After some analysis, it seems the create operation is either:

  1. never anchored correctly.
  2. anchored correctly but not handled correctly during resolution.

@OR13
Copy link
Sponsor Member Author

OR13 commented Jun 12, 2022

Current hypothesis is that the anchor transaction is never written... so there is never anything downloaded, so the did is never resolveable... in other words... a ledger interface issue.

@OR13
Copy link
Sponsor Member Author

OR13 commented Jun 12, 2022

  insufficient funds for gas * price + value

yep.

@OR13
Copy link
Sponsor Member Author

OR13 commented Jun 12, 2022

@OR13
Copy link
Sponsor Member Author

OR13 commented Jun 12, 2022

Resolved locally, cleaning up for a PR.

@OR13 OR13 mentioned this issue Jun 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant