Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: 8 RESOURCE_EXHAUSTED: Bandwidth exhausted #497

Closed
bharadwajambati95 opened this issue Sep 3, 2021 · 3 comments
Closed

Error: 8 RESOURCE_EXHAUSTED: Bandwidth exhausted #497

bharadwajambati95 opened this issue Sep 3, 2021 · 3 comments

Comments

@bharadwajambati95
Copy link
Contributor

bharadwajambati95 commented Sep 3, 2021

I am using fabric node sdk 2.2 with below node_modules and golang using chaincode.
Node Modules used:
fabric-network: 2.2.8
fabric-ca-client: 2.2.8
fabric-common: 2.2.8

I am getting below error after few transactions are committed to the ledger.

`
2021-07-26T14:59:07.624Z - �[31merror�[39m: [Endorser]: sendProposal[test-peer] - Received error response from: grpcs://test-peer:7051 error: Error: 8 RESOURCE_EXHAUSTED: Bandwidth exhausted

2021-07-26T14:59:07.625Z - �[31merror�[39m: [Endorser]: sendProposal[test-peer] - rejecting with: Error: 8 RESOURCE_EXHAUSTED: Bandwidth exhausted

�[32m[2021-07-26T14:59:07.995] [INFO] API - �[39mLeaving app.get() for /contract.

2021-07-26T14:59:49.981Z - �[31merror�[39m: [Endorser]: sendProposal[test-peer] - Received error response from: grpcs://test-peer:7051 error: Error: 13 INTERNAL: Received RST_STREAM with code 0

2021-07-26T14:59:49.981Z - �[31merror�[39m: [Endorser]: sendProposal[test-peer] - rejecting with: Error: 13 INTERNAL: Received RST_STREAM with code 0

2021-07-26T14:59:49.996Z - �[31merror�[39m: [Endorser]: sendProposal[test-peer] - Received error response from: grpcs://test-peer:7051 error: Error: 8 RESOURCE_EXHAUSTED: Bandwidth exhausted

2021-07-26T14:59:49.996Z - �[31merror�[39m: [Endorser]: sendProposal[test-peer] - rejecting with: Error: 8 RESOURCE_EXHAUSTED: Bandwidth exhausted
`

Below are the gateway options I am using for gateway connection
const gatewayOptions: GatewayOptions = {
identity: 'user_identity'
wallet,
discovery: {
enabled: true,
asLocalhost: false
},
eventHandlerOptions: {
strategy: DefaultEventHandlerStrategies.NETWORK_SCOPE_ANYFORTX
},
clientTlsIdentity: 'admin'
};

It was working fine with [email protected] where we are using fabric-client instead of fabric-network

@bestbeforetoday
Copy link
Member

This sounds like it might be issue grpc/grpc-node#1158 with @grpc/grpc-js and Node. It might be worth trying with the latest release of Node v12 or v14.

@bestbeforetoday
Copy link
Member

@bharadwajambati95 Did you have any success using the suggestions in the grpc-node issue linked above? Note also the most recent comments on that issue, which mention gRPC properties that may help: grpc/grpc-node#1158 (comment)

@bestbeforetoday
Copy link
Member

Please re-open if you get a chance to try the suggested solutions above and still see issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants