# \#maxbuffersize

**URL:** https://discuss.aerospike.com/tag/maxbuffersize/16.md

[Latest](https://discuss.aerospike.com/latest.md) · [Categories](https://discuss.aerospike.com/categories.md) · [Tags](https://discuss.aerospike.com/tags.md)

---

## [Aerospike - Go-client: Invalid readBytes length \[Resolved\]](https://discuss.aerospike.com/t/aerospike-go-client-invalid-readbytes-length-resolved/1677)

<div class="topic-metadata">

**Author:** [@max83](https://discuss.aerospike.com/u/max83)\
**Replies:** 3\
**Last updated:** [August 31, 2015, 2:40pm UTC](https://discuss.aerospike.com/t/aerospike-go-client-invalid-readbytes-length-resolved/1677 "2015-08-31T14:40:00Z")

</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?…

---

## [\[Resolved\] Cause of AerospikeError: -2 & message "invalid size for buffer:"? \[Bug\]](https://discuss.aerospike.com/t/resolved-cause-of-aerospikeerror-2-message-invalid-size-for-buffer-bug/1692)

<div class="topic-metadata">

**Author:** [@birkir](https://discuss.aerospike.com/u/birkir)\
**Replies:** 9\
**Last updated:** [August 31, 2015, 11:19am UTC](https://discuss.aerospike.com/t/resolved-cause-of-aerospikeerror-2-message-invalid-size-for-buffer-bug/1692 "2015-08-31T11:19:49Z")

</div>

Occasionally I’ll see this error in our production logs, then with a message like Invalid size for buffer: 11008865 It seems to happen when I call client.GetLargeList(defaultWritePolicy, key(ID), listName, "") Any…
