[Babel-users] help about babelweb : problème non résolu merci

michael.holcman1 at free.fr michael.holcman1 at free.fr
Mon Feb 24 12:23:25 UTC 2014


Hello,
Thank's for your answer.

If i wrote this:
sudo babeld -h 25 -C "interface eth0 update-interval 100 link-quality true" -d 1
h is in second or ms ? same question about update interval ?
Than's for your help.



----- Mail original -----
De: "Gabriel Kerneis" <gabriel at kerneis.info>
À: "michael holcman1" <michael.holcman1 at free.fr>
Cc: babel-users at lists.alioth.debian.org
Envoyé: Lundi 24 Février 2014 12:11:39
Objet: Re: help about babelweb : problème non résolu merci

On Mon, Feb 24, 2014 at 10:33:16AM +0000, Gabriel Kerneis wrote:
> > []:undefined - Babel socket close: reconnecting in 1 second.
> 
> In particular, I don't understand at all what part of the code is
> generating the "[]: undefined - " characters.

Ah, you are using babelweb from github, not the release installed by npm!
Again, if you don't give me the exact steps that you followed to install and
launch babelweb, I cannot really help you.

It looks the url.parse function fails to parse the "routers" option to
get an IP address and a host to connect to.  You can apply the following
patch to try and debug the issue:

diff --git a/server.js b/server.js
index eb07f85..008105b 100644
--- a/server.js
+++ b/server.js
@@ -57,7 +57,9 @@ var babelNode = require('./babelNode');
 var url = require('url');
 var routers =
   config.routers.split(',').map(function(r) {
+    console.log("parsing router string: " + r);
     var u = url.parse("ip:" + r);
+    console.log("parsed values: port=" + u.port + ", host="+u.hostname);
     return babelNode.connect({port: u.port, host: u.hostname});
   });
 

You can also try to start babelweb with an explicit routers option to see if that helps:
$ bin/babelweb routers="[::1]:33123"

Best,
-- 
Gabriel



More information about the Babel-users mailing list