Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
231 views
in Technique[技术] by (71.8m points)

javascript - Node.js Buffer.from() cuts part of JSON-RPC

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...