MaxXx1313 / fabric-rest

REST server for Hyperledger Fabric
4 stars 7 forks source link

Error: Failed to connect before the deadline #5

Open MaxXx1313 opened 5 years ago

MaxXx1313 commented 5 years ago

Sometimes we catch an error in a few seconds after start up the server:

Error: Error: Error: Failed to connect before the deadline
    at checkState (/home/cenos/fabric-rest-dev/server/node_modules/grpc/src/client.js:838:16)
    at helper.getClientForOrg.then.then (/home/cenos/fabric-rest-dev/server/lib-fabric/query.js:373:13)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
    at helper.getClientForOrg.then.then.catch (/home/cenos/fabric-rest-dev/server/lib-fabric/query.js:376:13)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
MaxXx1313 commented 5 years ago

When we updated to the latest fabric-client (v 1.2.1) the stack trace have changed:

error: [Remote.js]: Error: Failed to connect before the deadline
error: [Orderer.js]: Orderer grpcs://***.blockchain.ibm.com:20127 has an error Error: Failed to connect before the deadline
Request failed: POST /channels/someChannel/chaincodes/someChaincode: Failed to connect before the deadline
Error: Failed to connect before the deadline
    at checkState (/home/user/fabric-rest/server/node_modules/grpc/src/client.js:838:16)
Error: Failed to connect before the deadline
    at checkState (/home/user/fabric-rest/server/node_modules/grpc/src/client.js:838:16)