Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Can't render headers after they are sent to the client. #443

nfroidure opened this Issue · 4 comments

2 participants


I've got recurrent errors using http-proxy@0.10.3 with the following message. How to avoid it ?

throw new Error('Can\'t render headers after they are sent to the client.'
Error: Can't render headers after they are sent to the client.
at ServerResponse.OutgoingMessage._renderHeaders (http.js:687:11)
at ServerResponse.writeHead (http.js:951:20)
at ClientRequest.proxyError (/home/nodejs/node_modules/http-proxy/lib/node-http-proxy/http-proxy.js:203:9)
at ClientRequest.g (events.js:192:14)
at ClientRequest.EventEmitter.emit (events.js:96:17)
at Socket.socketErrorListener (http.js:1331:9)
at Socket.EventEmitter.emit (events.js:96:17)
at Socket._destroy.self.errorEmitted (net.js:329:14)
at process.startup.processNextTick.process._tickCallback (node.js:244:9)


Here is the code i use:

var http = require('http')
    httpProxy = require('http-proxy');

    hostnameOnly: true,
  router: {
    '' : '',
    '' : '',
    '': ''

Seems to be a duplicate of #388


Maybe usefull:

# node -v

I am getting this error when trying to proxy website. Can someone reproduce the bug for this website?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.