Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6589173
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:08:21+00:00 2026-05-25T17:08:21+00:00

I am trying out node and it’s Express framework via the Express boilerplate installation.

  • 0

I am trying out node and it’s Express framework via the Express boilerplate installation. It took me a while to figure out I need Redis installed (btw, if you’re making a boilerplate either include all required software with it or warn about the requirement for certain software – Redis was never mentioned as required) and to get my way around the server.js file.

Right now I’m still a stranger to how I could build a site in this..

There is one problem that bugs me specifically – when I run the server.js file, it says it’s all good. When I try to access it in the browser, it says ‘transferring data from localhost’ and never ends – it’s like render doesn’t finish sending and never sends the headers. No errors, no logs, no nothing – res.render(‘index’) just hangs. The file exists, and the script finds it, but nothing ever happens. I don’t have a callback in the render defined, so headers should get sent as usual.
If on the other hand I replace the render command with a simple write(‘Hello world’); and then do a res.end();, it works like a charm.

What am I doing wrong with rendering? I haven’t changed a thing from the original installation btw. The file in question is index.ejs, it’s in views/, and I even called app.register(‘.ejs’, require(‘ejs’)); just in case before the render itself. EJS is installed.

Also worth noting – if I do a res.render(‘index’); and then res.write(‘Hello’); immediately afterwards, followed by res.end();, I do get “Hello” on the screen, but the render never happens – it just hangs and says “Transferring data from localhost”. So the application doesn’t really die or hang, it just never finishes the render.

Edit: Interesting turn of events: if I define a callback in the render, the response does end. There is no more “Transferring data…”, but the view is never rendered, neither is the layout. The source is completely empty upon inspection. There are no errors whatsoever, and no exceptions.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T17:08:22+00:00Added an answer on May 25, 2026 at 5:08 pm

    Problem fixed. It turns our render() has to be the absolute last command in a routing chain. Putting res.write(‘Hello’); and res.end(); after it was exactly what broke it.

    I deleted everything and wrote simply res.render(‘index’) and it worked like a charm. Learn from my fail, newbies – no outputting anything after rendering!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to figure out how to know if a node is the last
I'm trying to figure out how to implement a function in a tree node
I am trying to figure out how to use mongoose-joins for Node.js. I have
I'm parsing some xml, and given a particular node, I'm trying to figure out
I have been trying to figure out how to integrate a node.js app into
I'm writing a simple REST service in Node.js (just experimenting), trying to figure out
I am trying to figure out how to use a node graph for processing
I am trying to figure out how to highlight a node on a treeview
I am trying to figure out how to remove a node from a binary
While trying out an experimental UINavigationController-based iPhone application, I ran into a problem when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.