{"action":"created","issue":{"url":"https://api.github.com/repos/nodesecurity/grunt-nsp-shrinkwrap/issues/8","labels_url":"https://api.github.com/repos/nodesecurity/grunt-nsp-shrinkwrap/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/nodesecurity/grunt-nsp-shrinkwrap/issues/8/comments","events_url":"https://api.github.com/repos/nodesecurity/grunt-nsp-shrinkwrap/issues/8/events","html_url":"https://github.com/nodesecurity/grunt-nsp-shrinkwrap/issues/8","id":63790374,"number":8,"title":"nginx fails with \"413 Request Entity Too Large\" if I try and validate my shrinkwrap file using grunt-nsp-shrinkwrap","user":{"login":"pdehaan","id":557895,"avatar_url":"https://avatars.githubusercontent.com/u/557895?v=3","gravatar_id":"","url":"https://api.github.com/users/pdehaan","html_url":"https://github.com/pdehaan","followers_url":"https://api.github.com/users/pdehaan/followers","following_url":"https://api.github.com/users/pdehaan/following{/other_user}","gists_url":"https://api.github.com/users/pdehaan/gists{/gist_id}","starred_url":"https://api.github.com/users/pdehaan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdehaan/subscriptions","organizations_url":"https://api.github.com/users/pdehaan/orgs","repos_url":"https://api.github.com/users/pdehaan/repos","events_url":"https://api.github.com/users/pdehaan/events{/privacy}","received_events_url":"https://api.github.com/users/pdehaan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-03-23T17:57:32Z","updated_at":"2015-03-23T18:29:17Z","closed_at":null,"body":"I'm trying to validate a 1.1MB npm-shrinkwrap.json file using grunt-nsp-shrinkwrap, and the server seems to be blowing up.\r\n\r\nRepo in question is https://github.com/mozilla/fxa-content-server\r\n\r\n### Steps to reproduce:\r\n1. `git clone git@github.com:mozilla/fxa-content-server.git`\r\n2. `rm npm-shrinkwrap.json`\r\n3. `npm i`\r\n4. `npm shrinkwrap --dev`\r\n5. `grunt validate-shrinkwrap`\r\n6. weep.\r\n\r\n\r\n```\r\nfxa-content-server.CRITICAL: TypeError: Object <html>\r\n<head><title>413 Request Entity Too Large</title></head>\r\n<body bgcolor=\"white\">\r\n<center><h1>413 Request Entity Too Large</h1></center>\r\n<hr><center>nginx</center>\r\n</body>\r\n</html>\r\n has no method 'forEach'\r\n```\r\n\r\n---\r\n\r\n```sh\r\n$ ls -lah npm-sh*\r\n-rw-r--r--  1 pdehaan  staff   1.1M Mar 23 10:48 npm-shrinkwrap.json\r\n```\r\n\r\n```sh\r\n$ grunt validate-shrinkwrap\r\n\r\nRunning \"validate-shrinkwrap\" task\r\n/Users/pdehaan/dev/fxa-content-server_pd/fxa-content-server/npm-shrinkwrap.json\r\nfxa-content-server.CRITICAL: TypeError: Object <html>\r\n<head><title>413 Request Entity Too Large</title></head>\r\n<body bgcolor=\"white\">\r\n<center><h1>413 Request Entity Too Large</h1></center>\r\n<hr><center>nginx</center>\r\n</body>\r\n</html>\r\n has no method 'forEach'\r\n<head><title>413 Request Entity Too Large</title></head>\r\n<body bgcolor=\"white\">\r\n<center><h1>413 Request Entity Too Large</h1></center>\r\n<hr><center>nginx</center>\r\n</body>\r\n</html>\r\n has no method 'forEach'\r\n    at Request._callback (/Users/pdehaan/dev/fxa-content-server_pd/fxa-content-server/node_modules/grunt-nsp-shrinkwrap/tasks/shrinkwrap.js:46:26)\r\n    at Request.self.callback (/Users/pdehaan/dev/fxa-content-server_pd/fxa-content-server/node_modules/request/request.js:123:22)\r\n    at Request.emit (events.js:98:17)\r\n    at Request.<anonymous> (/Users/pdehaan/dev/fxa-content-server_pd/fxa-content-server/node_modules/request/request.js:1047:14)\r\n    at Request.emit (events.js:117:20)\r\n    at IncomingMessage.<anonymous> (/Users/pdehaan/dev/fxa-content-server_pd/fxa-content-server/node_modules/request/request.js:998:12)\r\n    at IncomingMessage.emit (events.js:117:20)\r\n    at _stream_readable.js:944:16\r\n    at process._tickCallback (node.js:442:13)\r\nFatal error: Object <html>\r\n<head><title>413 Request Entity Too Large</title></head>\r\n<body bgcolor=\"white\">\r\n<center><h1>413 Request Entity Too Large</h1></center>\r\n<hr><center>nginx</center>\r\n</body>\r\n</html>\r\n has no method 'forEach'\r\n\r\n\r\nExecution Time (2015-03-23 17:50:37 UTC)\r\nloading tasks        3.7s  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 74%\r\nvalidate-shrinkwrap  1.3s  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 26%\r\nTotal 5s\r\n```\r\n\r\nBut it seems to work fine if I just use `nsp` directly from the CLI:\r\n```\r\n$ nsp shrinkwrap\r\n\r\nName          Installed       Patched       Vulnerable Dependency\r\nqs              0.6.6          >= 1.x       fxa-content-server > bower > bower-registry-client > request\r\nqs              0.6.6          >= 1.x       fxa-content-server > bower > bower-registry-client > request\r\nqs              0.6.6          >= 1.x       fxa-content-server > bower > request\r\nqs              0.6.6          >= 1.x       fxa-content-server > bower > request\r\nqs              0.6.6          >= 1.x       fxa-content-server > coveralls > request\r\nqs              0.6.6          >= 1.x       fxa-content-server > coveralls > request\r\nserve-index     1.2.1         >=1.6.3       fxa-content-server > express > connect\r\nserve-static    1.6.4    ~1.6.5 || >=1.7.2  fxa-content-server > express > connect\r\nqs              0.5.6          >= 1.x       fxa-content-server > grunt-contrib-watch > tiny-lr-fork\r\nqs              0.5.6          >= 1.x       fxa-content-server > grunt-contrib-watch > tiny-lr-fork\r\nmarked          0.3.2         >=0.3.3       fxa-content-server > grunt-marked\r\n```"},"comment":{"url":"https://api.github.com/repos/nodesecurity/grunt-nsp-shrinkwrap/issues/comments/85134681","html_url":"https://github.com/nodesecurity/grunt-nsp-shrinkwrap/issues/8#issuecomment-85134681","issue_url":"https://api.github.com/repos/nodesecurity/grunt-nsp-shrinkwrap/issues/8","id":85134681,"user":{"login":"bear","id":1267,"avatar_url":"https://avatars.githubusercontent.com/u/1267?v=3","gravatar_id":"","url":"https://api.github.com/users/bear","html_url":"https://github.com/bear","followers_url":"https://api.github.com/users/bear/followers","following_url":"https://api.github.com/users/bear/following{/other_user}","gists_url":"https://api.github.com/users/bear/gists{/gist_id}","starred_url":"https://api.github.com/users/bear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bear/subscriptions","organizations_url":"https://api.github.com/users/bear/orgs","repos_url":"https://api.github.com/users/bear/repos","events_url":"https://api.github.com/users/bear/events{/privacy}","received_events_url":"https://api.github.com/users/bear/received_events","type":"User","site_admin":false},"created_at":"2015-03-23T18:29:17Z","updated_at":"2015-03-23T18:29:17Z","body":"limit updated in nginx to 5meg"}}