IBM-Blockchain-Archive / ibm-blockchain-issues

Having issues with the IBM Blockchain Bluemix service? Let us know!
13 stars 12 forks source link

Got access denied when using gateway.getNetwork #133

Open MadaoIsMyBrother opened 5 years ago

MadaoIsMyBrother commented 5 years ago

I run the tutorial code in https://github.com/IBM/blockchainbean2/blob/master/docs/run-local.md and got the following error:

2019-06-05 17-46-01 的屏幕截图

Here's what in my network.yaml:

orderers: orderer.example.com: url: grpc://localhost:17050 grpcOptions: ssl-target-name-override: orderer.example.com

peers: peer0.org1.example.com:

this URL is used to send endorsement and query requests

url: grpc://localhost:17051

grpcOptions:
  ssl-target-name-override: peer0.org1.example.com
  request-timeout: 120001

certificateAuthorities: ca-org1: url: http://localhost:17054 httpOptions: verify: false

registrar:
  - enrollId: admin
    enrollSecret: adminpw
caName: ca-org1

And output of docker ps command:

2019-06-05 17-50-39 的屏幕截图