-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error retrieving message content in large messages #13
Comments
I think I have an idea why it is happening. As per STOMP standards, the I noticed the content-length in your frame is character length. To get over it, the broker should send length in octets or should not send the |
Aha, We will look into the broker's implementation and provide some feedback in this thread. We're testing the new beta4 version and were surprised on this issue since the 4.0.8 version was running just fine (at least for us). Thanks for your quick response, again. |
Hello Kum, You were right: our middleware was sending the content lenght incorrectly. Now it's fixed in our side and the only "input" for you is that version 4.0.8 had, somehow, an incorrect implementation. Thanks again. I close this ticket. |
In all previous versions frame parsing had multiple minor issues, which all together made it work for most regular use cases. However, there was no easy way to support binary content - which can have NULLs. This was one of the main motivations for the new version. |
Hello,
I'm experiencing an issue when retrieving "large" messages using the latest 5.0.0-b4 version of the library.
The error is:
I'm receiving a frame (like the one attached to this issue) that is bigger than 5Kb. The collectBodyFixedSize function is trying to collect the body but it's not succeding at all.
Running a JSON.parse(message.body) is failing and I can see that this function is not retrieving the whole set of bytes of the body: it's collecting all but the 2 latest characters ("[}") of the body, making the JSON.parse fail.
I can't not reproduce this bug in smaller messages (50, 100... bytes or so) and this bug is not present in older versions (4.0.8).
Is this a real bug? Am I doing something wrong? Is this an error related to this beta version?
Thanks in advance.
message.txt
The text was updated successfully, but these errors were encountered: