json-server icon indicating copy to clipboard operation
json-server copied to clipboard

Error HTTP 413 Request entity too large

Open GSchutz opened this issue 11 years ago • 0 comments

The body-parser has an (Object) options parameter that accept a limit - maximum request body size. (default: <100kb>), my application have too many data, I have to set this value to 10mb so I will fork and commit my changes.

That's the error HTTP 413:

Error: request entity too large
    at makeError (/usr/lib/node_modules/json-server/node_modules/body-parser/node_modules/raw-body/index.js:184:15)
    at module.exports (/usr/lib/node_modules/json-server/node_modules/body-parser/node_modules/raw-body/index.js:40:15)
    at read (/usr/lib/node_modules/json-server/node_modules/body-parser/lib/read.js:62:3)
    at urlencodedParser (/usr/lib/node_modules/json-server/node_modules/body-parser/lib/types/urlencoded.js:84:5)
    at Layer.handle [as handle_request] (/usr/lib/node_modules/json-server/node_modules/express/lib/router/layer.js:82:5)
    at trim_prefix (/usr/lib/node_modules/json-server/node_modules/express/lib/router/index.js:271:13)
    at /usr/lib/node_modules/json-server/node_modules/express/lib/router/index.js:238:9
    at Function.proto.process_params (/usr/lib/node_modules/json-server/node_modules/express/lib/router/index.js:313:12)
    at /usr/lib/node_modules/json-server/node_modules/express/lib/router/index.js:229:12
    at Function.match_layer (/usr/lib/node_modules/json-server/node_modules/express/lib/router/index.js:

GSchutz avatar Dec 16 '14 20:12 GSchutz