Hey folks. I'm submitting a large line of code and I see this response:
"{\"stack\":\"PayloadTooLargeError: request entity too large\\n at readStream (/piston_api/node_modules/raw-body/index.js:155:17)\\n at getRawBody (/piston_api/node_modules/raw-body/index.js:108:12)\\n at read (/piston_api/node_modules/body-parser/lib/read.js:77:3)\\n at jsonParser (/piston_api/node_modules/body-parser/lib/types/json.js:135:5)\\n at Layer.handle [as handle_request] (/piston_api/node_modules/express/lib/router/layer.js:95:5)\\n at trim_prefix (/piston_api/node_modules/express/lib/router/index.js:323:13)\\n at /piston_api/node_modules/express/lib/router/index.js:284:7\\n at Function.process_params (/piston_api/node_modules/express/lib/router/index.js:341:12)\\n at next (/piston_api/node_modules/express/lib/router/index.js:275:10)\\n at urlencodedParser (/piston_api/node_modules/body-parser/lib/types/urlencoded.js:100:7)\"}"
Is there an easy out-of-the-box solution to this problem?
My case is that we're inserting arguments into existing code, and they can be large. For example, calling a method with an array of numbers of size 10^5.
Hey folks. I'm submitting a large line of code and I see this response:
"{\"stack\":\"PayloadTooLargeError: request entity too large\\n at readStream (/piston_api/node_modules/raw-body/index.js:155:17)\\n at getRawBody (/piston_api/node_modules/raw-body/index.js:108:12)\\n at read (/piston_api/node_modules/body-parser/lib/read.js:77:3)\\n at jsonParser (/piston_api/node_modules/body-parser/lib/types/json.js:135:5)\\n at Layer.handle [as handle_request] (/piston_api/node_modules/express/lib/router/layer.js:95:5)\\n at trim_prefix (/piston_api/node_modules/express/lib/router/index.js:323:13)\\n at /piston_api/node_modules/express/lib/router/index.js:284:7\\n at Function.process_params (/piston_api/node_modules/express/lib/router/index.js:341:12)\\n at next (/piston_api/node_modules/express/lib/router/index.js:275:10)\\n at urlencodedParser (/piston_api/node_modules/body-parser/lib/types/urlencoded.js:100:7)\"}"Is there an easy out-of-the-box solution to this problem?
My case is that we're inserting arguments into existing code, and they can be large. For example, calling a method with an array of numbers of size 10^5.