Published on

fabric-go-sdk 调用链码失败 connection is in TRANSIENT_FAILURE

Authors
connection is in TRANSIENT_FAILURE

需要在配置设置entityMatchers

entityMatchers:
 peer:
   - pattern: (\w+).org1.example.com:(\d+)
     urlSubstitutionExp: 192.168.86.128:7051
     sslTargetOverrideUrlSubstitutionExp: ${1}.org1.example.com
     mappedHost: peer0.org1.example.com
 orderer:
   - pattern: (\w+).example.(\w+)
     urlSubstitutionExp: 192.168.86.128:7050
     sslTargetOverrideUrlSubstitutionExp: orderer1.example.com
     mappedHost: orderer1.example.com