I'm encountering an issue while trying to send a large amount of JSON data to a server-side route in my Meteor.js application. The error message I keep receiving is:
Error: Request Entity Too Large at Object.exports.error (/mnt/data/2/node_modules/connect/lib/utils.js:62:13) at limit (/mnt/data/2/node_modules/connect/lib/middleware/limit.js:46:47) at urlencoded (/mnt/data/2/node_modules/connect/lib/middleware/urlencoded.js:58:5) at /mnt/data/2/node_modules/connect/lib/middleware/bodyParser.js:55:7 at json (/mnt/data/2/node_modules/connect/lib/middleware/json.js:46:55) at Object.bodyParser [as handle] (/mnt/data/2/node_modules/connect/lib/middleware/bodyParser.js:53:5) at next (/mnt/data/2/node_modules/connect/lib/proto.js:190:15) at Object.query [as handle] (/mnt/data/2/node_modules/connect/lib/middleware/query.js:44:5) at next (/mnt/data/2/node_modules/connect/lib/proto.js:190:15) at Object.Package [as handle] (packages/spiderable/spiderable.js:108)
After some research, it seems that I need to adjust the request limit for the connect middleware. Can anyone provide guidance on how to do this in Meteor? Thanks!