Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
62 Views

Error trying to get service's list of ROOMs from Node.js script in server side[v1.5]

Hi, I'm trying to create a simple Node.js script for determine how yours woogeenserver.js Node.js custom module can be used from server side for list the rooms of a particular service. In my attempt I have created a testServer.js file(in my home directory, i have copy the woogeenserver.js file in the same directory also) that have the following content:
//Start Code of file testServer.js var Woogeen = require('./woogeenserver.js'); Woogeen.API.init('54a1c29bb38b35ba58270227', '12843', 'http://192.168.196.135:3000'); http = require('http'); http.createServer(function (req, res) { res.writeHead(200, {'Content-Type':'text/plain'}); Woogeen.API.getRooms(function(rooms) { for(var i in rooms) { console.log('Room ', i, ':', rooms.name); } }, function (err){ console.log('Error: ', err); }); res.write("Hello World"); res.end(); }).listen(1337, '192.168.196.135'); console.log('Server running at http://192.168.196.135:1337'); //End Code
When I open the url http://192.168.196.135:1337 in a navigator I get the following error message in the terminal where I run mi custom script via Node.js: Error: 503 For run my script I download the tar archive node-v0.10.26-linux-x64.tar.gz from Node.js web site and extract it in my home directory, then i execute the following command in the terminal where i'm running Node.js: $sudo node-v0.10.26-linux-x64/bin/node testServer.js Can you tell me what i'm doing wrong? I have already execute the Release-v1.5/bin/start-all.sh for start the IntelCS MCU Server with sudo. I'm missing something? Must i need to copy the files woogeenconfig.js and woogeen.js that are in the Release-v1.5/sdk directory to my home directory also? For what are used the Node.js's modules in directory Release-v1.5/lib/node: amqp, aws-lib, express, mongojs, node-stat, request, socket.io, socket.io-client? How is supposed to be used the addon.node binary?. The specified modules are in use by the IntelCS MCU Server?. I known these are a lot of questions, but I suppose that the right understanding of these matters is crucial for who are trying to use the woogeenserver.js functions from Node.js's script in server side. Thanks in advance and Regards for the great work in IntelCS WebRTC tegnologies.
Tags (2)
0 Kudos
1 Reply
Highlighted
62 Views

Hi Reynier,

Your testServer.js has been tested on our 1.5 release machine. Everything works fine here...

Could you send us more information regarding the log file of woogeen server and test server?

What's more, if you have other issues/concerns, please start new threads on the forum so that we can track them well.

Thanks a lot!

0 Kudos