uport-cli-client icon indicating copy to clipboard operation
uport-cli-client copied to clipboard

Initializing identity fails in local test network

Open subhodi opened this issue 6 years ago • 1 comments

Environment: Ubuntu v16.04, Node v8.11.2, Ganache-cli v6.1.0

Current behaviour:

Create user identity using uport-id create name in private test network deploys only Registry and Identity manager contracts and then throws an error.

logs

$ uport-id create jon-bolo
? Choose a network for your identity: Local Test Network

You selected Local Test Network, the following is the default configuration:

 {
    "id": "0x5777",
    "registry": "0x3f22a64e75a1c4bbb5894a4882aef240c6fea01c",
    "identityManager": "0x0ddd27df7dd974920876dec2891b19c2ebfc37b9",
    "rpcUrl": "http://127.0.0.1:7545"
}

? Do you want to change the default configuration?  Yes
? Do you want to deploy the uport platform contracts on this network?  Yes
? Enter rpcUrl:  http://127.0.0.1:8545

 The following is the default ipfs configuration:

 ipfsUrl = https://ipfs.infura.io/ipfs/

? Is this ipfs configuration what you want to use?  Yes
? Are you creating an app identity?  No

 Please fund the following address:

 0xaaff651fa6e62cbf0504c81e21f51c4766b23798

 Then the contracts can be deployed and identity created

? Press y to continue:  Yes

 Deploying uPort platform contracts...

 uPort registry contract configured and deployed at 0x8aed75bef7f945e2c9daf9ebea3d0cc3fc281084

 uPort Identity Manager contract configured and deployed at 0x628d0c0b1f95e96e87d431d148db70497f8edff8

Initializing identity...

(node:29368) UnhandledPromiseRejectionWarning: #<Object>
(node:29368) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:29368) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

steps to reproduce

  1. run $ uport-id create name
  2. Choose local test network
  3. Choose yes to change default configuartion
  4. Choose yes to deploy uport platform contracts
  5. Enter rpcURL: http://127.0.0.1:8545 (ganache-cli)
  6. Choose yes to keep default IPFS endpoint
  7. Choose no to app identity
  8. Fund the mentioned address
  9. Finally select yes to deploy the contracts.

subhodi avatar May 18 '18 03:05 subhodi

I'm also facing this issue. Any solutions for this?

ghost avatar Jul 22 '18 10:07 ghost