Hi, in my project 256-shades-of-grey.glitch.me, I’m making a post request where one of the parameters could be up to (256^2)*4 characters long. Unsurprisingly, this is too large for the server to handle, and so I get a request entity too large
413 error. I’ve looked around, and there do seem to be ways to increase the max. file size, but none that would work with glitch.
Is there any way to do this with Glitch? If there isn’t, I could probably decrease the size by about 75%, but I really don’t want to.
Any help would be much appreciated.
If you want the full error, here it is:
PayloadTooLargeError: request entity too large
at readStream (/rbd/pnpm-volume/30a81e72-677a-4450-8dde-4baf535d90b5/node_modules/.registry.npmjs.org/raw-body/2.4.0/node_modules/raw-body/index.js:155:17)
at getRawBody (/rbd/pnpm-volume/30a81e72-677a-4450-8dde-4baf535d90b5/node_modules/.registry.npmjs.org/raw-body/2.4.0/node_modules/raw-body/index.js:108:12)
at read (/rbd/pnpm-volume/30a81e72-677a-4450-8dde-4baf535d90b5/node_modules/.registry.npmjs.org/body-parser/1.19.0/node_modules/body-parser/lib/read.js:77:3)
at urlencodedParser (/rbd/pnpm-volume/30a81e72-677a-4450-8dde-4baf535d90b5/node_modules/.registry.npmjs.org/body-parser/1.19.0/node_modules/body-parser/lib/types/urlencoded.js:116:5)
at Layer.handle [as handle_request] (/rbd/pnpm-volume/30a81e72-677a-4450-8dde-4baf535d90b5/node_modules/.registry.npmjs.org/express/4.17.1/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/rbd/pnpm-volume/30a81e72-677a-4450-8dde-4baf535d90b5/node_modules/.registry.npmjs.org/express/4.17.1/node_modules/express/lib/router/index.js:317:13)
at /rbd/pnpm-volume/30a81e72-677a-4450-8dde-4baf535d90b5/node_modules/.registry.npmjs.org/express/4.17.1/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/rbd/pnpm-volume/30a81e72-677a-4450-8dde-4baf535d90b5/node_modules/.registry.npmjs.org/express/4.17.1/node_modules/express/lib/router/index.js:335:12)
at next (/rbd/pnpm-volume/30a81e72-677a-4450-8dde-4baf535d90b5/node_modules/.registry.npmjs.org/express/4.17.1/node_modules/express/lib/router/index.js:275:10)
at jsonParser (/rbd/pnpm-volume/30a81e72-677a-4450-8dde-4baf535d90b5/node_modules/.registry.npmjs.org/body-parser/1.19.0/node_modules/body-parser/lib/types/json.js:119:7)
Thanks in advance for your help.