Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


text-generator app in Node.js

hey everyone I'm facing problem in my text-generator app in node.

Error :

F:\Working Files\text-generator>node app.js
Server started @ 3000 port.
      throw er; // Unhandled 'error' event

Error: write after end
    at ServerResponse.OutgoingMessage.write (_http_outgoing.js:439:15)
    at Object.generateTemplate (F:\Working Files\text-generator\views.js:7:12)
    at Object.userRoute (F:\Working Files\text-generator\route.js:65:14)
    at Server.<anonymous> (F:\Working Files\text-generator\app.js:16:11)
    at emitTwo (events.js:106:13)
    at Server.emit (events.js:191:7)
    at HTTPParser.parserOnIncoming [as onIncoming] (_http_server.js:546:12)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)

here is my workspace snapshot http://w.trhou.se/86zhtxkxx8