xmppo / node-xmpp-bosh

An XMPP BOSH & WebSocket server (connection manager) written on node.js using Javascript
https://github.com/xmppo/node-xmpp-bosh
263 stars 85 forks source link

Problem with lookup-service.js #62

Closed flosse closed 11 years ago

flosse commented 11 years ago

I'm trying to setup node-xmpp-bosh with ejabberd and strophe. Connecting to ejabberds http_bindworks fine but with node-xmpp-bosh the following error occurs:

[2013-02-05 00:29:14.937] [WARN] [lookup-service.js:give_up_trying_to_connect:114] - Giving up connection attempts to mydomain
[2013-02-05 00:29:14.941] [INFO] [xmpp-proxy.js:XMPPProxy.dutil.copy._on_lookup_error:337] - 423fc435-11eb-493f-a8d4-fd96f7d50094 a7f43608-3a5b-4bd5-b7be-3826aa274648 _on_lookup_error - host-unknown
[2013-02-05 00:29:14.942] [INFO] [xmpp-proxy.js:XMPPProxy.dutil.copy._close_connection:326] - 423fc435-11eb-493f-a8d4-fd96f7d50094 a7f43608-3a5b-4bd5-b7be-3826aa274648 _close_connection error: host-unknown
[2013-02-05 00:29:14.944] [INFO] [xmpp-proxy-connector.js:Object._on_xmpp_proxy_close:59] - 423fc435-11eb-493f-a8d4-fd96f7d50094 a7f43608-3a5b-4bd5-b7be-3826aa274648 - terminate stream
[2013-02-05 00:29:14.946] [INFO] [session.js:Object.Session.send_terminate_response:585] - 423fc435-11eb-493f-a8d4-fd96f7d50094 send_terminate_response - ro: true, condition: host-unknown

In ejabberd.cfg the domain is defined:

{hosts, ["mydomain","localhost"]}.

So how can I tell lookup-service.js that mydomain is served by ejabberd on my local machine ?

flosse commented 11 years ago

Defining the domain in /etc/hosts solves the problem :)