Skip to content

Instantly share code, notes, and snippets.

@scottstensland
Created September 20, 2014 19:33
Show Gist options
  • Select an option

  • Save scottstensland/e856adbfd1f94b416221 to your computer and use it in GitHub Desktop.

Select an option

Save scottstensland/e856adbfd1f94b416221 to your computer and use it in GitHub Desktop.
npm publish -ddd 502 Bad Gateway The proxy server received an invalid response from an upstream server
stens@kamchatka ~/Dropbox/Documents/code/github/websockets-streaming-audio $ npm publish -ddd
npm info it worked if it ends with ok
npm verb cli [ '/home/stens/bin_0_10_32/nodejs/bin/node',
npm verb cli '/home/stens/bin_0_10_32/nodejs/bin/npm',
npm verb cli 'publish',
npm verb cli '-ddd' ]
npm info using npm@1.4.28
npm info using node@v0.10.32
npm verb publish [ '.' ]
npm verb cache add [ '.', null ]
npm verb cache add name=undefined spec="." args=[".",null]
npm verb parsed url { protocol: null,
npm verb parsed url slashes: null,
npm verb parsed url auth: null,
npm verb parsed url host: null,
npm verb parsed url port: null,
npm verb parsed url hostname: null,
npm verb parsed url hash: null,
npm verb parsed url search: null,
npm verb parsed url query: null,
npm verb parsed url pathname: '.',
npm verb parsed url path: '.',
npm verb parsed url href: '.' }
npm sill lockFile 3a52ce78- .
npm verb lock . /home/stens/.npm/3a52ce78-.lock
npm verb tar pack [ '/home/stens/.npm/websockets-streaming-audio/0.7.9/package.tgz',
npm verb tar pack '.' ]
npm verb tarball /home/stens/.npm/websockets-streaming-audio/0.7.9/package.tgz
npm verb folder .
npm info prepublish websockets-streaming-audio@0.7.9
npm sill lockFile 1f1177db-tar tar://.
npm verb lock tar://. /home/stens/.npm/1f1177db-tar.lock
npm sill lockFile cc43d3de-treaming-audio-0-7-9-package-tgz tar:///home/stens/.npm/websockets-streaming-audio/0.7.9/package.tgz
npm verb lock tar:///home/stens/.npm/websockets-streaming-audio/0.7.9/package.tgz /home/stens/.npm/cc43d3de-treaming-audio-0-7-9-package-tgz.lock
-
\
npm sill lockFile 1f1177db-tar tar://.
npm sill lockFile 1f1177db-tar tar://.
npm sill lockFile cc43d3de-treaming-audio-0-7-9-package-tgz tar:///home/stens/.npm/websockets-streaming-audio/0.7.9/package.tgz
npm sill lockFile cc43d3de-treaming-audio-0-7-9-package-tgz tar:///home/stens/.npm/websockets-streaming-audio/0.7.9/package.tgz
npm sill lockFile 95badf9b-ts-streaming-audio-0-7-9-package /home/stens/.npm/websockets-streaming-audio/0.7.9/package
npm verb lock /home/stens/.npm/websockets-streaming-audio/0.7.9/package /home/stens/.npm/95badf9b-ts-streaming-audio-0-7-9-package.lock
npm sill lockFile 95badf9b-ts-streaming-audio-0-7-9-package /home/stens/.npm/websockets-streaming-audio/0.7.9/package
npm sill lockFile 95badf9b-ts-streaming-audio-0-7-9-package /home/stens/.npm/websockets-streaming-audio/0.7.9/package
npm sill lockFile 3a52ce78- .
npm sill lockFile 3a52ce78- .
npm sill publish { author:
npm sill publish { name: 'Scott Stensland',
npm sill publish email: 'scottstensland@gmail.com',
npm sill publish url: 'http://catfoodnation.com/' },
npm sill publish bugs: { url: 'https://github.com/scottstensland/websockets-streaming-audio/issues' },
npm sill publish dependencies:
npm sill publish { ws: '0.4.x',
npm sill publish express: '^4.4.5',
npm sill publish 'audio-utils': '1.0.x',
npm sill publish 'shared-utils': '0.1.3-6' },
npm sill publish description: 'Click a browser button to launch a node.js process on the server side which streams audio using web sockets back to the browser which is then rendered using web audio API My plan is to make this modular enough to get added to your process as simple API calls',
npm sill publish engines: { node: '0.10.x' },
npm sill publish homepage: 'https://github.com/scottstensland',
npm sill publish keywords: [ 'websockets', 'webaudio', 'audio', 'streaming', 'binary' ],
npm sill publish license: 'ISC',
npm sill publish main: 'src_mod/app.js',
npm sill publish name: 'websockets-streaming-audio',
npm sill publish repository:
npm sill publish { type: 'git',
npm sill publish url: 'https://github.com/scottstensland/websockets-streaming-audio.git' },
npm sill publish scripts: { start: 'node src/app.js', test: 'make' },
npm sill publish subdomain: 'websockets-streaming-audio',
npm sill publish version: '0.7.9',
npm sill publish readme: 'websockets-streaming-audio\n==========================\n\nClick a browser button to launch a node.js process on the server side which streams audio using web sockets back to the browser which is then rendered using web audio API\n\nMy plan is to make this modular enough to get added to your process as simple API calls\n\n# Installation\n\nvisit [nodejs.org](http://nodejs.org) and install node.js\n\nsee project npm site at \n\n[https://www.npmjs.org/package/websockets-streaming-audio](https://www.npmjs.org/package/websockets-streaming-audio)\n\n\n\n\nClone this repository to your local machine:\n\n```bash\nnpm install websockets-streaming-audio\n```\nChange directory into the project folder websockets-streaming-audio\n\nThen install the dependent modules:\n\n```bash\nnpm install\n```\n\n\nLaunch the nodejs app:\n\n```bash\nnpm start\n```\n\n\nUsing a WebGL savvy browser, point it at URL :\n\n```bash\n\t\t http://localhost:8888 \n```\n\nnow in your browser (firefox/chrome) click stream_audio\n\nor ignore above and just see this WebGL app deployed live on heroku :\n\n[http://websockets-streaming-audio.herokuapp.com](http://websockets-streaming-audio.herokuapp.com)\n\n\nFeel free to contact me on twitter if you have any questions! :) [@scottstensland](http://twitter.com/scottstensland)\n\n\n',
npm sill publish readmeFilename: 'README.md',
npm sill publish gitHead: '197b5ffb0cfb07b91c32e15b4d41833d62f615af',
npm sill publish _id: 'websockets-streaming-audio@0.7.9',
npm sill publish _shasum: 'df7c2137e121bb251df8101617d5ca2093ca6eff',
npm sill publish _from: '.' }
npm verb request where is /websockets-streaming-audio
npm verb request registry https://registry.npmjs.org/
npm verb request id 9535e00602cb4dd7
npm verb url raw /websockets-streaming-audio
npm verb url resolving [ 'https://registry.npmjs.org/',
npm verb url resolving './websockets-streaming-audio' ]
npm verb url resolved https://registry.npmjs.org/websockets-streaming-audio
npm verb request where is https://registry.npmjs.org/websockets-streaming-audio
npm info trying registry request attempt 1 at 15:07:29
npm http PUT https://registry.npmjs.org/websockets-streaming-audio
npm http 502 https://registry.npmjs.org/websockets-streaming-audio
npm verb bad json <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
npm verb bad json <html><head>
npm verb bad json <title>502 Bad Gateway</title>
npm verb bad json </head><body>
npm verb bad json <h1>Bad Gateway</h1>
npm verb bad json <p>The proxy server received an invalid
npm verb bad json response from an upstream server.<br />
npm verb bad json </p>
npm verb bad json </body></html>
npm verb bad json
npm ERR! registry error parsing json
npm info retry will retry, error on last attempt: SyntaxError: Unexpected token <
npm info retry <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
npm info retry <html><head>
npm info retry <title>502 Bad Gateway</title>
npm info retry </head><body>
npm info retry <h1>Bad Gateway</h1>
npm info retry <p>The proxy server received an invalid
npm info retry response from an upstream server.<br />
npm info retry </p>
npm info retry </body></html>
npm info retry
npm info trying registry request attempt 2 at 15:30:59
npm http PUT https://registry.npmjs.org/websockets-streaming-audio
npm ERR! Error: write EPIPE
npm ERR! at errnoException (net.js:904:11)
npm ERR! at Object.afterWrite (net.js:720:19)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Linux 3.13.0-35-generic
npm ERR! command "/home/stens/bin_0_10_32/nodejs/bin/node" "/home/stens/bin_0_10_32/nodejs/bin/npm" "publish" "-ddd"
npm ERR! cwd /home/stens/Dropbox/Documents/code/github/websockets-streaming-audio
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! syscall write
npm ERR! code EPIPE
npm ERR! errno EPIPE
npm verb exit [ 1, true ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment