flow-go-sdk icon indicating copy to clipboard operation
flow-go-sdk copied to clipboard

grpc: received message larger than max

Open MattC-DSS opened this issue 3 years ago • 1 comments

Retrieving data sometimes results in ResourceExhausted desc = grpc: received message larger than max( xxxxx vs. 4194304).

For example, the sample script called get_all_plays from the nba-smark-contracts github page should return an array of all of the plays that have ever been created for Top Shot. It returns the error above. This has also happened when using GetEventsForHeightRange for a single block, if the amount of event data returned is too big.

This issue was raised here: https://github.com/onflow/flow-go-sdk/issues/125. Has it been resolved? I haven't seen examples or documentation about how to increase the upper limit on how much data can be returned. thanks.

MattC-DSS avatar Mar 26 '22 15:03 MattC-DSS

I believe this would need to be solved by a pagination system in place. We will try to get that supported soon especially with the new HTTP API.

devbugging avatar Mar 28 '22 07:03 devbugging