TZM / tzm-blade

ZMGC Application empowers members with on-line tools, by providing a free infrastructure to easily exchange, analyse and disseminate information in a scalable, non-blocking manner using only Open Source software build by the community for the community. It is about building lasting and deep solidarity versus cheap and fast Facebook or Twitter campaigns
www.zmgc.net
GNU General Public License v3.0
4 stars 8 forks source link

Error: Can't set headers after they are sent. #5

Open nkhine opened 11 years ago

nkhine commented 11 years ago

i get this traceback when the user clicks on the map page:

currentLng set to: fr
GET /map 304 214ms
[Error: Can't set headers after they are sent.]
Error: Can't set headers after they are sent.
    at ServerResponse.OutgoingMessage.setHeader (http.js:708:11)
    at ServerResponse.res.setHeader (/Users/khinester/Documents/Tutorials/Node/Blade/node_modules/express/node_modules/connect/lib/patch.js:59:22)
    at ServerResponse.res.set.res.header (/Users/khinester/Documents/Tutorials/Node/Blade/node_modules/express/lib/response.js:518:10)
    at ServerResponse.res.contentType.res.type (/Users/khinester/Documents/Tutorials/Node/Blade/node_modules/express/lib/response.js:390:15)
    at ServerResponse.res.send (/Users/khinester/Documents/Tutorials/Node/Blade/node_modules/express/lib/response.js:107:14)
    at fn (/Users/khinester/Documents/Tutorials/Node/Blade/node_modules/express/lib/response.js:751:10)
    at Function.eval [as template] (eval at <anonymous> (/Users/khinester/Documents/Tutorials/Node/Blade/node_modules/blade/lib/compiler.js:149:23), <anonymous>:6:684)
    at wrapper (/Users/khinester/Documents/Tutorials/Node/Blade/node_modules/blade/lib/compiler.js:143:12)
    at /Users/khinester/Documents/Tutorials/Node/Blade/node_modules/blade/lib/blade.js:100:3
    at /Users/khinester/Documents/Tutorials/Node/Blade/node_modules/blade/lib/blade.js:61:4
    at Compiler.compile (/Users/khinester/Documents/Tutorials/Node/Blade/node_modules/blade/lib/compiler.js:184:2)
    at compile (/Users/khinester/Documents/Tutorials/Node/Blade/node_modules/blade/lib/blade.js:57:12)
    at /Users/khinester/Documents/Tutorials/Node/Blade/node_modules/blade/lib/blade.js:87:4
    at fs.js:266:14
    at Object.oncomplete (fs.js:107:15)