Closed flosse closed 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:
http_bind
[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:
ejabberd.cfg
{hosts, ["mydomain","localhost"]}.
So how can I tell lookup-service.js that mydomain is served by ejabberd on my local machine ?
mydomain
Defining the domain in /etc/hosts solves the problem :)
/etc/hosts
I'm trying to setup node-xmpp-bosh with ejabberd and strophe. Connecting to ejabberds
http_bind
works fine but with node-xmpp-bosh the following error occurs:In
ejabberd.cfg
the domain is defined:So how can I tell lookup-service.js that
mydomain
is served by ejabberd on my local machine ?