I have a problem with my Node.js back-end. I'm sending a large JSON from Angular app to express server and then to RabbitMQ queue as JSONRpcMessage, using Buffer.from(message)
, Node logs request body in controller just fine, but in RabbitMQ queue the message get cut off. Express json()
and urlEncoded()
are set to 50mb, so my guess it is a problem with Buffer. Is there a way to increase max Buffer size? Or is it some other problem, maybe with nginx?
Would appreciate any help because I'm running out of ideas, and couldn't find similar problem anywhere else.
question from:
https://stackoverflow.com/questions/65829448/node-js-buffer-from-cuts-part-of-json-rpc 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…