flow-go-sdk
flow-go-sdk copied to clipboard
grpc: received message larger than max
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.
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.