angularjs - Error: request entity too large (mean.io) -
i trying parse .srt file , saving parsed object in mongodb collection. when i'm uploading big srt file, getting entity large error. googled around , found express config line increase size limit of request didn't seem trick. when submit file saving:
js console:
post (angular.js:10514) http://localhost:3000/api/subtitles 500 (internal server error)
here complete error:
error: request entity large @ readstream (/users/egills/meanpanda/node_modules/body-parser/node_modules/raw-body/index.js:179:15) @ getrawbody (/users/egills/meanpanda/node_modules/body-parser/node_modules/raw-body/index.js:97:12) @ read (/users/egills/meanpanda/node_modules/body-parser/lib/read.js:68:3) @ jsonparser (/users/egills/meanpanda/node_modules/body-parser/lib/types/json.js:121:5) @ layer.handle [as handle_request] (/users/egills/meanpanda/node_modules/meanio/lib/core_modules/server/node_modules/express/lib/router/layer.js:95:5) @ trim_prefix (/users/egills/meanpanda/node_modules/meanio/lib/core_modules/server/node_modules/express/lib/router/index.js:312:13) @ /users/egills/meanpanda/node_modules/meanio/lib/core_modules/server/node_modules/express/lib/router/index.js:280:7 @ function.process_params (/users/egills/meanpanda/node_modules/meanio/lib/core_modules/server/node_modules/express/lib/router/index.js:330:12) @ next (/users/egills/meanpanda/node_modules/meanio/lib/core_modules/server/node_modules/express/lib/router/index.js:271:10) @ /users/egills/meanpanda/node_modules/meanio/lib/core_modules/server/node_modules/express-validator/lib/express_validator.js:163:5 @ layer.handle [as handle_request] (/users/egills/meanpanda/node_modules/meanio/lib/core_modules/server/node_modules/express/lib/router/layer.js:95:5) @ trim_prefix (/users/egills/meanpanda/node_modules/meanio/lib/core_modules/server/node_modules/express/lib/router/index.js:312:13) @ /users/egills/meanpanda/node_modules/meanio/lib/core_modules/server/node_modules/express/lib/router/index.js:280:7 @ function.process_params (/users/egills/meanpanda/node_modules/meanio/lib/core_modules/server/node_modules/express/lib/router/index.js:330:12) @ next (/users/egills/meanpanda/node_modules/meanio/lib/core_modules/server/node_modules/express/lib/router/index.js:271:10) @ cookieparser (/users/egills/meanpanda/node_modules/meanio/lib/core_modules/server/node_modules/cookie-parser/index.js:34:14) @ layer.handle [as handle_request] (/users/egills/meanpanda/node_modules/meanio/lib/core_modules/server/node_modules/express/lib/router/layer.js:95:5) @ trim_prefix (/users/egills/meanpanda/node_modules/meanio/lib/core_modules/server/node_modules/express/lib/router/index.js:312:13) @ /users/egills/meanpanda/node_modules/meanio/lib/core_modules/server/node_modules/express/lib/router/index.js:280:7 @ function.process_params (/users/egills/meanpanda/node_modules/meanio/lib/core_modules/server/node_modules/express/lib/router/index.js:330:12) @ next (/users/egills/meanpanda/node_modules/meanio/lib/core_modules/server/node_modules/express/lib/router/index.js:271:10) @ /users/egills/meanpanda/node_modules/meanio/lib/core_modules/server/expressengine.js:41:5
here http header:
accept:application/json, text/plain, */* accept-encoding:gzip, deflate accept-language:en-us,en;q=0.8,is;q=0.6 authorization:bearer <long key> connection:keep-alive content-length:178471 content-type:application/json;charset=utf-8 host:localhost:3000 origin:http://localhost:3000 referer:http://localhost:3000/subtitles/create user-agent:mozilla/5.0 (macintosh; intel mac os x 10_10_4) applewebkit/537.36 (khtml, gecko) chrome/44.0.2403.107 safari/537.36
here solution hoping fix not. srt file im testing 107kb , express config here. running app using default gulp task in developer enviroment. need add size config somewhere else? tried adding in app.js file inside subtitles package folder didn't either.
Comments
Post a Comment