Aerospike - Go-client: Invalid readBytes length [Resolved]

we have a problem with Go-client for aerospike, when we read large data set (ordered-list) with a 100K+ elements We get this error: Invalid readBytes length: 12111521 I think it is limit for bin in GO client. I am right? Can I increase this limit?

Sorry for the late response, you had posted this in the wrong forum section and I didn’t get any notification.

You are right, and that limit has been there to protect against massive memory blocks when the returned data is malformed for whatever reason.

You can change this number, but I’ll release a new version of the client today that will let you tweak this number.

1 Like

We released a new client version on Friday and now you can tweak the MaxBufferSize to work around this issue.

Thank you!

P.S forum have minimum limit for message in 20 characters, what’s why I wrote this PS