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

**URL:** <https://discuss.aerospike.com/t/aerospike-go-client-invalid-readbytes-length-resolved/1677>\
**Category:** Go Client\
**Tags:** llist, maxbuffersize, error\
**Created:** [August 21, 2015, 4:09pm UTC](https://discuss.aerospike.com/t/aerospike-go-client-invalid-readbytes-length-resolved/1677 "2015-08-21T16:09:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![max83](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@max83](https://discuss.aerospike.com/u/max83)\
**Post date:** [August 21, 2015, 4:09pm UTC](https://discuss.aerospike.com/t/aerospike-go-client-invalid-readbytes-length-resolved/1677/1 "2015-08-21T16:09:49Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Khosrow\_Afroozeh](https://avatars.discourse-cdn.com/v4/letter/k/c6cbf5/32.png) [@Khosrow\_Afroozeh](https://discuss.aerospike.com/u/Khosrow_Afroozeh)\
**Post date:** [August 28, 2015, 9:09am UTC](https://discuss.aerospike.com/t/aerospike-go-client-invalid-readbytes-length-resolved/1677/2 "2015-08-28T09:09:14Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Khosrow\_Afroozeh](https://avatars.discourse-cdn.com/v4/letter/k/c6cbf5/32.png) [@Khosrow\_Afroozeh](https://discuss.aerospike.com/u/Khosrow_Afroozeh)\
**Post date:** [August 31, 2015, 11:21am UTC](https://discuss.aerospike.com/t/aerospike-go-client-invalid-readbytes-length-resolved/1677/3 "2015-08-31T11:21:05Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![max83](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@max83](https://discuss.aerospike.com/u/max83)\
**Post date:** [August 31, 2015, 2:40pm UTC](https://discuss.aerospike.com/t/aerospike-go-client-invalid-readbytes-length-resolved/1677/4 "2015-08-31T14:40:00Z")

</div>

Thank you!

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