Closed ayush-zuma closed 3 weeks ago
Wow, that's a large message! Try lowering the frameMax
option on the connection. It looks like node's socket.read()
method has a limit of 1GiB, so I should limit frameMax to 2^30 - 1 bytes. Meanwhile you can set this value yourself. Let me me know if this works for you.
/** Max size, in bytes, of AMQP data frames. Protocol max is
* 2^32-1. Actual value is negotiated with the server.
* @default 4096 */
frameMax?: number,
const rabbit = new Connection({
frameMax: 10484760, // 10 MiB
})
Note that this option does not limit your message size. Large messages are split into multiple frames.
@cody-greene I am sorry for wasting your time. It turns out, my docker build was not exposing the node env value correctly, because of which the connection string was passed as undefined
. But thank you for your quick response.
Hi,
Thank you building this helpful library. It's very easy to work with, and definitely helps take care a lot of boilerplate code.
I have been building a project, and it is working as expected on my local machine, but today i deployed it on AWS ECS and suddenly as soon as the app loads it starts throwing the following error in loop
Strangely enough, i am using more or less the same boilerplate code for my other project, which is also deployed on AWS ECS but that works normally.
Any ideas what I could be doing wrong here?
And the error stack is