{"action":"created","issue":{"url":"https://api.github.com/repos/angular-fullstack/generator-angular-fullstack/issues/2299","repository_url":"https://api.github.com/repos/angular-fullstack/generator-angular-fullstack","labels_url":"https://api.github.com/repos/angular-fullstack/generator-angular-fullstack/issues/2299/labels{/name}","comments_url":"https://api.github.com/repos/angular-fullstack/generator-angular-fullstack/issues/2299/comments","events_url":"https://api.github.com/repos/angular-fullstack/generator-angular-fullstack/issues/2299/events","html_url":"https://github.com/angular-fullstack/generator-angular-fullstack/issues/2299","id":183316057,"number":2299,"title":"request entity too large","user":{"login":"mmumshad","id":2704615,"avatar_url":"https://avatars.githubusercontent.com/u/2704615?v=3","gravatar_id":"","url":"https://api.github.com/users/mmumshad","html_url":"https://github.com/mmumshad","followers_url":"https://api.github.com/users/mmumshad/followers","following_url":"https://api.github.com/users/mmumshad/following{/other_user}","gists_url":"https://api.github.com/users/mmumshad/gists{/gist_id}","starred_url":"https://api.github.com/users/mmumshad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmumshad/subscriptions","organizations_url":"https://api.github.com/users/mmumshad/orgs","repos_url":"https://api.github.com/users/mmumshad/repos","events_url":"https://api.github.com/users/mmumshad/events{/privacy}","received_events_url":"https://api.github.com/users/mmumshad/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-17T03:10:05Z","updated_at":"2016-10-17T19:25:59Z","closed_at":"2016-10-17T15:05:29Z","body":" - [x] I understand that GitHub issues are not for tech support, but for questions specific to this generator, bug reports, and feature requests.\r\n\r\nItem | Version\r\n----- | -----\r\ngenerator-angular-fullstack | 3.6.1\r\nNode | 4.4.4\r\nnpm | 3.8.9\r\nOperating System | Windows 7\r\n\r\nItem | Answer\r\n----- | -----\r\nTranspiler | TypeScript\r\nMarkup | HTML \r\nCSS | CSS \r\nRouter | ui-router\r\nClient Tests | Mocha\r\nDB | MongoDB \r\nAuth | Y \r\n\r\nI am using large datasets. Trying to set body parser limit to 20mb from default - 100kb. But unsuccessfull.\r\n\r\nI get the following error:\r\n```\r\nError: request entity too large\r\n    at readStream (/dev/app/node_modules/raw-body/index.js:200:17)\r\n    at getRawBody (/dev/app/node_modules/raw-body/index.js:108:12)\r\n    at read (/dev/app/node_modules/body-parser/lib/read.js:76:3)\r\n    at jsonParser (/dev/app/node_modules/body-parser/lib/types/json.js:129:5)\r\n    at Layer.handle [as handle_request] (/dev/app/node_modules/express/lib/router/layer.js:95:5)\r\n    at trim_prefix (/dev/app/node_modules/express/lib/router/index.js:312:13)\r\n    at /dev/app/node_modules/express/lib/router/index.js:280:7\r\n    at Function.process_params (/dev/app/node_modules/express/lib/router/index.js:330:12)\r\n    at next (/dev/app/node_modules/express/lib/router/index.js:271:10)\r\n    at expressInit (/dev/app/node_modules/express/lib/middleware/init.js:33:5)\r\n    at Layer.handle [as handle_request] (/dev/app/node_modules/express/lib/router/layer.js:95:5)\r\n    at trim_prefix (/dev/app/node_modules/express/lib/router/index.js:312:13)\r\n    at /dev/app/node_modules/express/lib/router/index.js:280:7\r\n    at Function.process_params (/dev/app/node_modules/express/lib/router/index.js:330:12)\r\n    at next (/dev/app/node_modules/express/lib/router/index.js:271:10)\r\n    at query (/dev/app/node_modules/express/lib/middleware/query.js:44:5)\r\n    at Layer.handle [as handle_request] (/dev/app/node_modules/express/lib/router/layer.js:95:5)\r\n    at trim_prefix (/dev/app/node_modules/express/lib/router/index.js:312:13)\r\n    at /dev/app/node_modules/express/lib/router/index.js:280:7\r\n    at Function.process_params (/dev/app/node_modules/express/lib/router/index.js:330:12)\r\n    at next (/dev/app/node_modules/express/lib/router/index.js:271:10)\r\n    at Function.handle (/dev/app/node_modules/express/lib/router/index.js:176:3)\r\n\r\n```\r\n\r\nTried steps here but no success: http://stackoverflow.com/questions/19917401/node-js-express-request-entity-too-large \r\n\r\nSet the following in express.js\r\n```\r\napp.use(bodyParser.urlencoded({ limit: '20mb', extended: true, type:'application/x-www-form-urlencoding'}));\r\n  app.use(bodyParser.json({limit: 1024*1024*20, type:'application/json'}));\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/angular-fullstack/generator-angular-fullstack/issues/comments/254307463","html_url":"https://github.com/angular-fullstack/generator-angular-fullstack/issues/2299#issuecomment-254307463","issue_url":"https://api.github.com/repos/angular-fullstack/generator-angular-fullstack/issues/2299","id":254307463,"user":{"login":"mmumshad","id":2704615,"avatar_url":"https://avatars.githubusercontent.com/u/2704615?v=3","gravatar_id":"","url":"https://api.github.com/users/mmumshad","html_url":"https://github.com/mmumshad","followers_url":"https://api.github.com/users/mmumshad/followers","following_url":"https://api.github.com/users/mmumshad/following{/other_user}","gists_url":"https://api.github.com/users/mmumshad/gists{/gist_id}","starred_url":"https://api.github.com/users/mmumshad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmumshad/subscriptions","organizations_url":"https://api.github.com/users/mmumshad/orgs","repos_url":"https://api.github.com/users/mmumshad/repos","events_url":"https://api.github.com/users/mmumshad/events{/privacy}","received_events_url":"https://api.github.com/users/mmumshad/received_events","type":"User","site_admin":false},"created_at":"2016-10-17T19:25:59Z","updated_at":"2016-10-17T19:25:59Z","body":"Sorry about that! I thought it had something more to do with this project as other solutions at Stack Overflow didnt work. I finally figured it out. In case someone else has the same issue:\r\n\r\nI had to set it in app.js file and not in the express.js file. This works.\r\n\r\n```\r\napp.use(bodyParser.json({limit:'60mb'}));\r\n```"}}
{"actor":{"display_login":"mmumshad"}}