mohamedsaeed27 / xmpphp

Automatically exported from code.google.com/p/xmpphp
0 stars 0 forks source link

Connection to Jabber-server does not work (<stream:error><host-unknown ...) #17

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
### What steps will reproduce the problem?

1. running example script, adapted for my google-talk login.
Verified manually with Psi-client, ID/password is definitely working.

### What is the expected output? What do you see instead?

Expected: working to login, if not with SSL, then at least
login without should be possible. Verified manually with Psi-client,
ID/password is working.

## With old version r21 ##

INFO   : Connecting to tcp://talk.google.com:5222
VERBOSE: SENT: <stream:stream to="swissjabber.ch"
xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client"
version="1.0">
VERBOSE: RECV: <?xml version="1.0" encoding="UTF-8"?><stream:stream
from="swissjabber.ch" id="AFCD7421C509B530" version="1.0"
xmlns:stream="http://etherx.jabber.org/streams"
xmlns="jabber:client"><stream:features><starttls
xmlns="urn:ietf:params:xml:ns:xmpp-tls"><required/></starttls><mechanisms
xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>X-GOOGLE-TOKEN</mechanism></
mechanisms></stream:features>
DEBUG  : Calling features_handler
VERBOSE: SENT: <starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'><required
/></starttls>
VERBOSE: RECV: <stream:error><host-unknown
xmlns="urn:ietf:params:xml:ns:xmpp-streams"/><str:text
xmlns:str="urn:ietf:params:xml:ns:xmpp-streams">Set the 'to' attribute of
stream element to the domain part of the user's JID. Example:
to='gmail.com'.</str:text></stream:error></stream:stream>
VERBOSE: SENT: </stream:stream>
WARNING: Reconnecting...
INFO   : Connecting to tcp://talk.google.com:5222
VERBOSE: SENT: <stream:stream to="swissjabber.ch"
xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client"
version="1.0">
DEBUG  : EVENT: end_stream
VERBOSE: RECV: <?xml version="1.0" encoding="UTF-8"?><stream:stream
from="swissjabber.ch" id="1DD4D012856619A9" version="1.0"
xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client">
VERBOSE: RECV: <stream:features><starttls
xmlns="urn:ietf:params:xml:ns:xmpp-tls"><required/></starttls><mechanisms
xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>X-GOOGLE-TOKEN</mechanism></
mechanisms></stream:features><stream:error><host-unknown
xmlns="urn:ietf:params:xml:ns:xmpp-streams"/><str:text
xmlns:str="urn:ietf:params:xml:ns:xmpp-streams">Set the 'to' attribute of
stream element to the domain part of the user's JID. Example:
to='gmail.com'.</str:text></stream:error></stream:stream>
DEBUG  : Calling features_handler
VERBOSE: SENT: <starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'><required
/></starttls>
VERBOSE: SENT: </stream:stream>
WARNING: Reconnecting...
INFO   : Connecting to tcp://talk.google.com:5222
VERBOSE: SENT: <stream:stream to="swissjabber.ch"
xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client"
version="1.0">
DEBUG  : EVENT: end_stream
VERBOSE: RECV: <?xml version="1.0" encoding="UTF-8"?><stream:stream
from="swissjabber.ch" id="046F0B4C87AA4E76" version="1.0"
xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client">
VERBOSE: RECV: <stream:features><starttls
xmlns="urn:ietf:params:xml:ns:xmpp-tls"><required/></starttls><mechanisms
xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>X-GOOGLE-TOKEN</mechanism></
mechanisms></stream:features>
DEBUG  : Calling features_handler
VERBOSE: SENT: <starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'><required
/></starttls>
VERBOSE: RECV: <stream:error><host-unknown
xmlns="urn:ietf:params:xml:ns:xmpp-streams"/><str:text
xmlns:str="urn:ietf:params:xml:ns:xmpp-streams">Set the 'to' attribute of
stream element to the domain part of the user's JID. Example:
to='gmail.com'.</str:text></stream:error></stream:stream>
VERBOSE: SENT: </stream:stream>
WARNING: Reconnecting...
INFO   : Connecting to tcp://talk.google.com:5222
VERBOSE: SENT: <stream:stream to="swissjabber.ch"
xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client"
version="1.0">
DEBUG  : EVENT: end_stream

## With current SVN-version (r41? - checked out again on date of bugreport) ##

1213361568 [INFO]: Connecting to tcp://talk.google.com:5222
1213361568 [VERBOSE]: SENT: <stream:stream to="jabber.org"
xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client"
version="1.0">
1213361568 [VERBOSE]: RECV: <?xml version="1.0"
encoding="UTF-8"?><stream:stream from="jabber.org" id="E6F981BE3B32937F"
version="1.0" xmlns:stream="http://etherx.jabber.org/streams"
xmlns="jabber:client">
1213361568 [VERBOSE]: RECV: <stream:features><starttls
xmlns="urn:ietf:params:xml:ns:xmpp-tls"><required/></starttls><mechanisms
xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>X-GOOGLE-TOKEN</mechanism></
mechanisms></stream:features>
1213361568 [DEBUG]: Calling features_handler
1213361568 [VERBOSE]: SENT: <starttls
xmlns='urn:ietf:params:xml:ns:xmpp-tls'><required /></starttls>
1213361568 [VERBOSE]: RECV: <stream:error><host-unknown
xmlns="urn:ietf:params:xml:ns:xmpp-streams"/><str:text
xmlns:str="urn:ietf:params:xml:ns:xmpp-streams">Set the 'to' attribute of
stream element to the domain part of the user's JID. Example:
to='gmail.com'.</str:text></stream:error>
1213361568 [VERBOSE]: RECV: </stream:stream>
1213361568 [VERBOSE]: SENT: </stream:stream>
1213361568 [WARNING]: Reconnecting...
1213361568 [INFO]: Connecting to tcp://talk.google.com:5222
1213361568 [ERROR]: Could not connect.
Could not connect.
----

### Please provide any additional information below.

It seems that for others it's working. :(
Any hint/fix appreciated.

Original issue reported on code.google.com by arago...@gmx.net on 13 Jun 2008 at 1:09

GoogleCodeExporter commented 8 years ago
You have the jabber server set to talk.google.com though that's not the domain 
you want.

Original comment by nathanfr...@gmail.com on 7 Jul 2008 at 2:32