Skip to content

Instantly share code, notes, and snippets.

@tanepiper
Created January 31, 2014 00:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tanepiper/8723336 to your computer and use it in GitHub Desktop.
Save tanepiper/8723336 to your computer and use it in GitHub Desktop.
/Users/tanepiper/work/pebblecode/ad-platform/node_modules/primus/transformer.js:115
res.setHeader('Content-Type', 'text/javascript; charset=utf-8');
^
TypeError: Object #<Object> has no method 'setHeader'
at serve (/Users/tanepiper/work/pebblecode/ad-platform/node_modules/primus/transformer.js:115:9)
at EventEmitter.emit (events.js:98:17)
at request (/Users/tanepiper/work/pebblecode/ad-platform/node_modules/primus/transformer.js:136:55)
at EventEmitter.emit (events.js:106:17)
at internals.Request.log (/Users/tanepiper/work/pebblecode/ad-platform/node_modules/hapi/lib/request.js:218:17)
at new module.exports.internals.Request (/Users/tanepiper/work/pebblecode/ad-platform/node_modules/hapi/lib/request.js:151:10)
at Server.<anonymous> (/Users/tanepiper/work/pebblecode/ad-platform/node_modules/hapi/lib/server.js:227:23)
at Server.EventEmitter.emit (events.js:98:17)
at HTTPParser.parser.onIncoming (http.js:2108:12)
at HTTPParser.parserOnHeadersComplete [as onHeadersComplete] (http.js:121:23)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment