{"action":"opened","issue":{"url":"https://api.github.com/repos/IBM-Blockchain/cp-web/issues/40","repository_url":"https://api.github.com/repos/IBM-Blockchain/cp-web","labels_url":"https://api.github.com/repos/IBM-Blockchain/cp-web/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/IBM-Blockchain/cp-web/issues/40/comments","events_url":"https://api.github.com/repos/IBM-Blockchain/cp-web/issues/40/events","html_url":"https://github.com/IBM-Blockchain/cp-web/issues/40","id":171466927,"number":40,"title":"Failed to enroll WebAppAdmin","user":{"login":"pedrocervantes","id":20934904,"avatar_url":"https://avatars.githubusercontent.com/u/20934904?v=3","gravatar_id":"","url":"https://api.github.com/users/pedrocervantes","html_url":"https://github.com/pedrocervantes","followers_url":"https://api.github.com/users/pedrocervantes/followers","following_url":"https://api.github.com/users/pedrocervantes/following{/other_user}","gists_url":"https://api.github.com/users/pedrocervantes/gists{/gist_id}","starred_url":"https://api.github.com/users/pedrocervantes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedrocervantes/subscriptions","organizations_url":"https://api.github.com/users/pedrocervantes/orgs","repos_url":"https://api.github.com/users/pedrocervantes/repos","events_url":"https://api.github.com/users/pedrocervantes/events{/privacy}","received_events_url":"https://api.github.com/users/pedrocervantes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-16T17:02:32Z","updated_at":"2016-08-16T17:02:32Z","closed_at":null,"body":"When trying to enroll WebAppAdmin on file client.js, function makeUnaryRequest at call:\r\ncall.startBatch I always get the response  with status code 2, and no description.\r\n\r\nResponse from startBatch:\r\n{ send_metadata: true,\r\n  send_message: true,\r\n  client_close: true,\r\n  metadata: \r\n   { server: [ 'nghttpx nghttp2/1.12.0' ],\r\n     'content-length': [ '160' ],\r\n     date: [ 'Tue, 16 Aug 2016 16:52:28 GMT' ] },\r\n  read: null,\r\n  status: \r\n   { code: 2,\r\n     details: '',\r\n     metadata: Metadata { _internal_repr: {} } } }\r\n\r\nI do successfully get the member object with the chain.getMember function, but fails enrolling it.\r\nI've tried using the secret/enrollSecret hardcoded from membersvc.yaml and also the secret/enrollSecret from the blockchain service \r\n\r\nmycreds.json looks like this:\r\n{\r\n  \"ibm-blockchain-5-prod\": [\r\n    {\r\n      \"name\": \"cpblockchain\",\r\n      \"label\": \"ibm-blockchain-5-prod\",\r\n      \"plan\": \"ibm-blockchain-plan-5-prod\",\r\n      \"credentials\": {\r\n        \"peers\": [\r\n          {\r\n            \"discovery_host\": \"dd28bcb0-e68d-4c8a-a3aa-a767a6e2e459_vp0.us.blockchain.ibm.com\",\r\n            \"discovery_port\": 30303,\r\n            \"api_host\": \"dd28bcb0-e68d-4c8a-a3aa-a767a6e2e459_vp0.us.blockchain.ibm.com\",\r\n            \"api_port_tls\": 443,\r\n            \"api_port\": 443,\r\n            \"type\": \"peer\",\r\n            \"network_id\": \"dd28bcb0-e68d-4c8a-a3aa-a767a6e2e459\",\r\n            \"container_id\": \"8512486f34f3b92a2891de537f60b2112d8f279bde59cf33696d8497828bc63e\",\r\n            \"id\": \"dd28bcb0-e68d-4c8a-a3aa-a767a6e2e459_vp0\",\r\n            \"api_url\": \"http://dd28bcb0-e68d-4c8a-a3aa-a767a6e2e459_vp0.us.blockchain.ibm.com:443\"\r\n          },\r\n          {\r\n            \"discovery_host\": \"dd28bcb0-e68d-4c8a-a3aa-a767a6e2e459_vp3.us.blockchain.ibm.com\",\r\n            \"discovery_port\": 30303,\r\n            \"api_host\": \"dd28bcb0-e68d-4c8a-a3aa-a767a6e2e459_vp3.us.blockchain.ibm.com\",\r\n            \"api_port_tls\": 443,\r\n            \"api_port\": 443,\r\n            \"type\": \"peer\",\r\n            \"network_id\": \"dd28bcb0-e68d-4c8a-a3aa-a767a6e2e459\",\r\n            \"container_id\": \"8854f7e0374ec22f5c9f9425fe379c2daceebaded75fc155f2e53d44d544ef2f\",\r\n            \"id\": \"dd28bcb0-e68d-4c8a-a3aa-a767a6e2e459_vp3\",\r\n            \"api_url\": \"http://dd28bcb0-e68d-4c8a-a3aa-a767a6e2e459_vp3.us.blockchain.ibm.com:443\"\r\n          },\r\n          {\r\n            \"discovery_host\": \"dd28bcb0-e68d-4c8a-a3aa-a767a6e2e459_vp1.us.blockchain.ibm.com\",\r\n            \"discovery_port\": 30303,\r\n            \"api_host\": \"dd28bcb0-e68d-4c8a-a3aa-a767a6e2e459_vp1.us.blockchain.ibm.com\",\r\n            \"api_port_tls\": 443,\r\n            \"api_port\": 443,\r\n            \"type\": \"peer\",\r\n            \"network_id\": \"dd28bcb0-e68d-4c8a-a3aa-a767a6e2e459\",\r\n            \"container_id\": \"f057b8e5773f31229a169ac0d871db1c807a1c93375d9104f4a07f4add5c6d26\",\r\n            \"id\": \"dd28bcb0-e68d-4c8a-a3aa-a767a6e2e459_vp1\",\r\n            \"api_url\": \"http://dd28bcb0-e68d-4c8a-a3aa-a767a6e2e459_vp1.us.blockchain.ibm.com:443\"\r\n          },\r\n          {\r\n            \"discovery_host\": \"dd28bcb0-e68d-4c8a-a3aa-a767a6e2e459_vp2.us.blockchain.ibm.com\",\r\n            \"discovery_port\": 30303,\r\n            \"api_host\": \"dd28bcb0-e68d-4c8a-a3aa-a767a6e2e459_vp2.us.blockchain.ibm.com\",\r\n            \"api_port_tls\": 443,\r\n            \"api_port\": 443,\r\n            \"type\": \"peer\",\r\n            \"network_id\": \"dd28bcb0-e68d-4c8a-a3aa-a767a6e2e459\",\r\n            \"container_id\": \"67d124efaaa7dd66448b232d13c70819e559176986bcd662b5ed0ce0ad34e544\",\r\n            \"id\": \"dd28bcb0-e68d-4c8a-a3aa-a767a6e2e459_vp2\",\r\n            \"api_url\": \"http://dd28bcb0-e68d-4c8a-a3aa-a767a6e2e459_vp2.us.blockchain.ibm.com:443\"\r\n          }\r\n        ],\r\n        \"ca\": {\r\n          \"dd28bcb0-e68d-4c8a-a3aa-a767a6e2e459_ca\": {\r\n            \"url\": \"dd28bcb0-e68d-4c8a-a3aa-a767a6e2e459_ca.us.blockchain.ibm.com:30303\",\r\n            \"discovery_host\": \"dd28bcb0-e68d-4c8a-a3aa-a767a6e2e459_ca.us.blockchain.ibm.com\",\r\n            \"discovery_port\": 30303,\r\n            \"api_host\": \"dd28bcb0-e68d-4c8a-a3aa-a767a6e2e459_ca.us.blockchain.ibm.com\",\r\n            \"api_port_tls\": 30303,\r\n            \"api_port\": 443,\r\n            \"type\": \"ca\",\r\n            \"network_id\": \"dd28bcb0-e68d-4c8a-a3aa-a767a6e2e459\",\r\n            \"container_id\": \"32c8883bc70eee764e8c25af889f902f092897e1618de2309ef6e916ee9fbf4a\"\r\n          }\r\n        },\r\n        \"users\": [\r\n          {\r\n            \"username\": \"WebAppAdmin\",\r\n            \"secret\": DATA FROM YML  OR BLOCKCHAIN SERVICE CREDENTIALS,\r\n            \"enrollId\": \"WebAppAdmin\",\r\n            \"enrollSecret\": DATA FROM YML  OR BLOCKCHAIN SERVICE CREDENTIALS\r\n          }\r\n        ],\r\n        \"cert\": \"https://blockchain-certs.mybluemix.net/us.blockchain.ibm.com.cert\"\r\n      }\r\n    }\r\n  ]\r\n}\r\n\r\nWhat am I missing?\r\n\r\nThanks in advance."}}
{"actor":{"display_login":"pedrocervantes"}}