{"action":"closed","issue":{"url":"https://api.github.com/repos/npm/npm/issues/9439","labels_url":"https://api.github.com/repos/npm/npm/issues/9439/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/9439/comments","events_url":"https://api.github.com/repos/npm/npm/issues/9439/events","html_url":"https://github.com/npm/npm/issues/9439","id":103843036,"number":9439,"title":"Failed PUT 413 on npm publish","user":{"login":"bhelx","id":185919,"avatar_url":"https://avatars.githubusercontent.com/u/185919?v=3","gravatar_id":"","url":"https://api.github.com/users/bhelx","html_url":"https://github.com/bhelx","followers_url":"https://api.github.com/users/bhelx/followers","following_url":"https://api.github.com/users/bhelx/following{/other_user}","gists_url":"https://api.github.com/users/bhelx/gists{/gist_id}","starred_url":"https://api.github.com/users/bhelx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhelx/subscriptions","organizations_url":"https://api.github.com/users/bhelx/orgs","repos_url":"https://api.github.com/users/bhelx/repos","events_url":"https://api.github.com/users/bhelx/events{/privacy}","received_events_url":"https://api.github.com/users/bhelx/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/npm/npm/labels/support","name":"support","color":"FF91AF"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-29T10:18:07Z","updated_at":"2015-08-31T21:36:40Z","closed_at":"2015-08-31T21:36:40Z","body":"Trying to publish a new library. I am logged in. I am seeing a (413 Request Entity Too Large) error from nginx. My repo doesn't seem too big (< 1 MB)\r\n\r\n```\r\nnpm ERR! registry error parsing json\r\nnpm ERR! publish Failed PUT 413\r\nnpm ERR! Darwin 14.5.0\r\nnpm ERR! argv \"node\" \"/Users/ben/.nvm/versions/node/v0.12.7/bin/npm\" \"publish\"\r\nnpm ERR! node v0.12.7\r\nnpm ERR! npm  v2.14.1\r\n\r\nnpm ERR! Unexpected token <\r\nnpm ERR! <html>\r\nnpm ERR! <head><title>413 Request Entity Too Large</title></head>\r\nnpm ERR! <body bgcolor=\"white\">\r\nnpm ERR! <center><h1>413 Request Entity Too Large</h1></center>\r\nnpm ERR! <hr><center>nginx/1.1.19</center>\r\nnpm ERR! </body>\r\nnpm ERR! </html>\r\nnpm ERR!\r\nnpm ERR!\r\nnpm ERR! If you need help, you may report this error at:\r\nnpm ERR!     <https://github.com/npm/npm/issues>\r\n\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     /Users/ben/code/mitie/npm-debug.log\r\n```\r\n\r\nMy debug log:\r\n\r\n```\r\n0 info it worked if it ends with ok\r\n1 verbose cli [ 'node',\r\n1 verbose cli   '/Users/ben/.nvm/versions/node/v0.12.7/bin/npm',\r\n1 verbose cli   'publish' ]\r\n2 info using npm@2.14.1\r\n3 info using node@v0.12.7\r\n4 verbose publish [ '.' ]\r\n5 silly cache add args [ '.', null ]\r\n6 verbose cache add spec .\r\n7 silly cache add parsed spec { raw: '.',\r\n7 silly cache add   scope: null,\r\n7 silly cache add   name: null,\r\n7 silly cache add   rawSpec: '.',\r\n7 silly cache add   spec: '/Users/ben/code/mitie',\r\n7 silly cache add   type: 'directory' }\r\n8 verbose addLocalDirectory /Users/ben/.npm/mitie/1.0.0/package.tgz not in flight; packing\r\n9 verbose tar pack [ '/Users/ben/.npm/mitie/1.0.0/package.tgz',\r\n9 verbose tar pack   '/Users/ben/code/mitie' ]\r\n10 verbose tarball /Users/ben/.npm/mitie/1.0.0/package.tgz\r\n11 verbose folder /Users/ben/code/mitie\r\n12 info prepublish mitie@1.0.0\r\n13 verbose addLocalTarball adding from inside cache /Users/ben/.npm/mitie/1.0.0/package.tgz\r\n14 silly cache afterAdd mitie@1.0.0\r\n15 verbose afterAdd /Users/ben/.npm/mitie/1.0.0/package/package.json not in flight; writing\r\n16 verbose afterAdd /Users/ben/.npm/mitie/1.0.0/package/package.json written\r\n17 silly publish { name: 'mitie',\r\n17 silly publish   version: '1.0.0',\r\n17 silly publish   description: 'Node bindings for MIT Information Extraction https://github.com/mit-nlp/MITIE',\r\n17 silly publish   gypfile: true,\r\n17 silly publish   main: 'index.js',\r\n17 silly publish   repository: { type: 'git', url: 'git+ssh://git@github.com/bhelx/mitie.git' },\r\n17 silly publish   keywords: [ 'mitie', 'nlp', 'ner' ],\r\n17 silly publish   scripts:\r\n17 silly publish    { test: 'node_modules/mocha/bin/mocha',\r\n17 silly publish      install: 'node-gyp rebuild' },\r\n17 silly publish   author: { name: 'bhelx' },\r\n17 silly publish   license: 'MIT',\r\n17 silly publish   dependencies: { bindings: '~1.2.1', nan: '^2.0.0' },\r\n17 silly publish   devDependencies: { mocha: '~2.2.5' },\r\n17 silly publish   readme: '## MITIE\\n\\nThis project is a node binding for the [MIT Information Extraction library](https://github.com/mit-nlp/MITIE). It\\'s written in C++ and js.\\n\\nI was most interested in using the [Named Entity Recognition](https://en.wikipedia.org/wiki/Named-entity_recognition) extractor so that\\'s all that\\'s been implemented so far.\\n\\n## Using\\n\\nThe quickest way to get the mitie dependency is with homebrew:\\n\\n```\\nbrew install mitie\\n```\\n\\nYou can install with npm on the command line or in your `package.json`:\\n\\n```\\nnpm install mitie --save\\n```\\n\\nThe API looks something like this:\\n\\n```javascript\\nvar mitie = require(\\'mitie\\');\\n\\n// Point it at a ner model .dat file\\n// You can also find where to get these on the main MIT project repo\\n\\nvar nerFile = \\'/usr/local/Cellar/mitie/0.4/share/MITIE-models/english/ner_model.dat\\';\\nvar extractor = new mitie.EntityExtractor(nerFile);\\n\\n// Feed in some data to the predict method\\n\\nvar data = \"Barack Obama visited New Orleans today for the anniversary of Hurricane Katrina.\"\\nvar results = extractor.predict(data);\\n\\n/**\\n * results => {\\n *  tags:\\n *    [ { tagNumber: 0,\\n *        score: 1.0957487452879051,\\n *       tagType: \\'PERSON\\',\\n *       tokens: \\'Barack Obama\\' },\\n *      { tagNumber: 1,\\n *        score: 0.8764343236070008,\\n *        tagType: \\'LOCATION\\',\\n *        tokens: \\'New Orleans\\' } ] }\\n */\\n```\\n\\n## Testing\\n\\nInstall with development deps:\\n\\n```\\nnpm install --dev\\n```\\n\\nRun mocha tests pointing to a ner model:\\n\\n```\\nNER_MODEL=/usr/local/Cellar/mitie/0.4/share/MITIE-models/english/ner_model.dat npm test\\n```\\n\\n## TODO\\n\\n* Would like to implement the rest of the library (implement binary relation detection)\\n* API could be cleaner for ner extractor, should allow passing a file path for the data\\n* Support other platforms, will probably not compile on anything other than OS X for now\\n\\n',\r\n17 silly publish   readmeFilename: 'README.md',\r\n17 silly publish   gitHead: '0df2546367ad611eecdc2723d32f24266d6c9f71',\r\n17 silly publish   bugs: { url: 'https://github.com/bhelx/mitie/issues' },\r\n17 silly publish   homepage: 'https://github.com/bhelx/mitie#readme',\r\n17 silly publish   _id: 'mitie@1.0.0',\r\n17 silly publish   _shasum: 'bb8e21b447abea62b6cb3cad30cae8abb6cc035c',\r\n17 silly publish   _from: '.' }\r\n18 verbose getPublishConfig undefined\r\n19 silly mapToRegistry name mitie\r\n20 silly mapToRegistry using default registry\r\n21 silly mapToRegistry registry http://npm.recurly.net/\r\n22 silly mapToRegistry uri http://npm.recurly.net/mitie\r\n23 verbose publish registryBase http://npm.recurly.net/\r\n24 silly publish uploading /Users/ben/.npm/mitie/1.0.0/package.tgz\r\n25 verbose request uri http://npm.recurly.net/mitie\r\n26 verbose request sending authorization for write operation\r\n27 info attempt registry request try #1 at 3:15:42 AM\r\n28 verbose request using bearer token for auth\r\n29 verbose request id 9693bfe01fb391f9\r\n30 http request PUT http://npm.recurly.net/mitie\r\n31 http 413 http://npm.recurly.net/mitie\r\n32 verbose bad json <html>\r\n32 verbose bad json <head><title>413 Request Entity Too Large</title></head>\r\n32 verbose bad json <body bgcolor=\"white\">\r\n32 verbose bad json <center><h1>413 Request Entity Too Large</h1></center>\r\n32 verbose bad json <hr><center>nginx/1.1.19</center>\r\n32 verbose bad json </body>\r\n32 verbose bad json </html>\r\n33 error registry error parsing json\r\n34 verbose headers { server: 'nginx/1.1.19',\r\n34 verbose headers   date: 'Sat, 29 Aug 2015 10:20:20 GMT',\r\n34 verbose headers   'content-type': 'text/html',\r\n34 verbose headers   'transfer-encoding': 'chunked',\r\n34 verbose headers   connection: 'close' }\r\n35 verbose request invalidating /Users/ben/.npm/npm.recurly.net/mitie on PUT\r\n36 error publish Failed PUT 413\r\n37 verbose stack SyntaxError: Unexpected token <\r\n37 verbose stack <html>\r\n37 verbose stack <head><title>413 Request Entity Too Large</title></head>\r\n37 verbose stack <body bgcolor=\"white\">\r\n37 verbose stack <center><h1>413 Request Entity Too Large</h1></center>\r\n37 verbose stack <hr><center>nginx/1.1.19</center>\r\n37 verbose stack </body>\r\n37 verbose stack </html>\r\n37 verbose stack\r\n37 verbose stack     at Object.parse (native)\r\n37 verbose stack     at CachingRegistryClient.<anonymous> (/Users/ben/.nvm/versions/node/v0.12.7/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:198:23)\r\n37 verbose stack     at Request._callback (/Users/ben/.nvm/versions/node/v0.12.7/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:171:14)\r\n37 verbose stack     at Request.self.callback (/Users/ben/.nvm/versions/node/v0.12.7/lib/node_modules/npm/node_modules/request/request.js:198:22)\r\n37 verbose stack     at Request.emit (events.js:110:17)\r\n37 verbose stack     at Request.<anonymous> (/Users/ben/.nvm/versions/node/v0.12.7/lib/node_modules/npm/node_modules/request/request.js:1073:14)\r\n37 verbose stack     at Request.emit (events.js:129:20)\r\n37 verbose stack     at IncomingMessage.<anonymous> (/Users/ben/.nvm/versions/node/v0.12.7/lib/node_modules/npm/node_modules/request/request.js:1019:12)\r\n37 verbose stack     at IncomingMessage.emit (events.js:129:20)\r\n37 verbose stack     at _stream_readable.js:908:16\r\n38 verbose cwd /Users/ben/code/mitie\r\n39 error Darwin 14.5.0\r\n40 error argv \"node\" \"/Users/ben/.nvm/versions/node/v0.12.7/bin/npm\" \"publish\"\r\n41 error node v0.12.7\r\n42 error npm  v2.14.1\r\n43 error Unexpected token <\r\n43 error <html>\r\n43 error <head><title>413 Request Entity Too Large</title></head>\r\n43 error <body bgcolor=\"white\">\r\n43 error <center><h1>413 Request Entity Too Large</h1></center>\r\n43 error <hr><center>nginx/1.1.19</center>\r\n43 error </body>\r\n43 error </html>\r\n44 error If you need help, you may report this error at:\r\n44 error     <https://github.com/npm/npm/issues>\r\n45 verbose exit [ 1, true ]\r\n```"}}