Open sh-developers opened 5 years ago
Thanks for the reproducer! I have checked in a fix for this now.
Should be fixed in 1.0.12
That was a quick fix! We will test it in our pipeline, but I expect it to be fixed now, looking at the commits. Many thanks!
Before reading the rest of this bug report it is best to read about the first time we hit this issue, back in 2018: #168
Background
We had some problems some time ago when sending certain messages over the messagebus, and have now identified how the bug might be replicable. It has to do with messages having a body being shorter than a uint8 (>=0 & <=255) in UTF8 characters, but longer than a uint8 in bytes.
Replication
Below is a sample of a test message in which this exact error occurs. Body:
Error on send:
Result / how to test
We could relatively easily replicate this error when the body of the message as it is placed on the message bus has a different bytelength, than it has a (unicode) length. Finding a(nother) message that has the above mentioned charisteristics, can be found for example using https://mothereff.in/byte-counter which reports for the above example a unicode/string length of 250 and a byte length of 256.
We have had this problem for a long time, so it would be great if this bug could finally be squashed.