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 8048097
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T06:19:16+00:00 2026-06-05T06:19:16+00:00

Hello fellow stackers. I am implementing node.js and nowjs on a website I am

  • 0

Hello fellow stackers.

I am implementing node.js and nowjs on a website I am working on. I started developing the site weeks ago on localhost and everything was working fine. I transferred the files couple of days ago to a cloud server hosted by rackspace with Ubuntu 12.04 LTS (Precise Pangolin) as OS.

Now I cant get the simple chat example on the nowjs home page to work! I keep getting the following error when I try to run the server side script :

[RangeError: Maximum call stack size exceeded]

There are no recursive loops in my code and I have tried looking for solutions for my problem all over the internet with no luck.

Here are my two example files – a c/p from the chat/helloworld example at the official nowjs site. (http://nowjs.com/doc/example)

server.js

var html = require('fs').readFileSync(__dirname+'/helloworld.html');
var server = require('http').createServer(function(req, res){
  res.end(html);
});
server.listen(8080);

var nowjs = require("now");
var everyone = nowjs.initialize(server);

everyone.now.distributeMessage = function(message){
  everyone.now.receiveMessage(this.now.name, message);
};

helloworld.html

<!DOCTYPE html>
<html lang="en">
<head>
<title>nowjs test</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<script src="/nowjs/now.js"></script>

<script>
$(document).ready(function(){

  now.receiveMessage = function(name, message){
    $("#messages").append("<br>" + name + ": " + message);
  }

  $("#send-button").click(function(){
    now.distributeMessage($("#text-input").val());
    $("#text-input").val("");
  });

  now.name = prompt("What's your name?", "");

});
</script>
</head>

<body>
  <div id="messages"></div>
  <input type="text" id="text-input">
  <input type="button" value="Send" id="send-button">
</body>
</html>

My questions :

  1. Has anyone had the same problem running nowjs on a hosted web server?
  2. Are there any dependencies that I might not be aware of when running nowjs on a hosted web server?

Thank you.

  • 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-06-05T06:19:18+00:00Added an answer on June 5, 2026 at 6:19 am

    I finally resolved this. All that needed was a reinstallation of node with the most recent stable version(v0.4.12).

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

Sidebar

Related Questions

Hello fellow stackies, I'm developing a site and I have a small problem. It's
Hello there fellow Stackers! I wonder if anybody could tell me what the following
Hello fellow programmers! Recently, I started learning Git, and pretty quickly discovered the amazing
Hello fellow programmers! I just started an additional programming project and swore to god
Hello fellow programmers, I am building a website and i read about sitemap.xml, but
Hello fellow developers! We are almost finished with developing first phase of our ajax
Hello my fellow ColdFusion developers! I'm trying to learn node.js, and I have a
Hello there fellow developers! I am working on a Windows Phone 7 app and
Hello fellow developers, I am a total newbie in Android development and I am
Hello fellow programmers, First, sorry for the long post. My question is rather simple,

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.