Maximum json data size in a stream

+2 votes
I am storing json data on a stream. when i send data that surpass maybe 20KB or less i get this error :

Error: -8
Invalid count, must include all text or JSON data

Thank you, my probleme was in the runtimeparam maxshowndata

since it was at 16Kb i changed it to 2Mb : setruntimeparam maxshowndata 2000000
asked Jun 18, 2019 by anonymous
edited Jun 20, 2019
The maxshowndata runtime parameter is about data obtained from API responses, not data provided as parameters to APIs. So I'm confused as to how this resolved the problem, unless you were using the response from one API call in the parameters for another.

1 Answer

0 votes

Can you please post the exact API command you are using to do this? And did you change the blockchain parameters from the default values?

If you are using the regular publish API and the default blockchain parameters, the limit is in the megabytes, so I'm not sure what the cause is.

answered Jun 19, 2019 by MultiChain