Is there an established limit for the size of a text string written to a channel using the ACL write command? We have encountered a few instances when using the write command where this appears to be true, but I have found no documentation of this limit. To be clear, here is the line of code we are referring to:
Our testing has shown that when $text_string is greater than 4,095 characters in length, the call fails.
Yes, there is a limit to the length of strings that can be passed. The usual way to handle this is to write smaller chunks, e.g. to write each line as a separate operation. It's often done using an array of strings, where each element of the array is a line.
If your string isn't line-based, you may just have to use arbitrary breaks, e.g. every 4000 chars, something like this: