Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with pidgin #15

Closed
cyphunk opened this issue Feb 25, 2015 · 2 comments
Closed

Error with pidgin #15

cyphunk opened this issue Feb 25, 2015 · 2 comments

Comments

@cyphunk
Copy link

cyphunk commented Feb 25, 2015

Adium appears to connect to the server without problem. Pidgin however fails

The following is a log from pidgin of a connection request failure.

(14:20:21) account: Connecting to account test2@localhost/r.
(14:20:21) connection: Connecting. gc = 0x7fde8b931ed0
(14:20:21) dnssrv: querying SRV record for localhost: _xmpp-client._tcp.localhost
(14:20:21) dnssrv: res_query returned an error
(14:20:21) dnsquery: Performing DNS lookup for localhost
(14:20:21) dns: Successfully sent DNS request to child 39208
(14:20:21) dns: Got response for 'localhost'
(14:20:21) dnsquery: IP resolved for localhost
(14:20:21) proxy: Attempting connection to 127.0.0.1
(14:20:21) proxy: Connecting to localhost:5222 with no proxy
(14:20:21) proxy: Connection in progress
(14:20:21) proxy: Connecting to localhost:5222.
(14:20:21) proxy: Connected to localhost:5222.
(14:20:21) jabber: Sending (test2@localhost/r): <?xml version='1.0' ?>
(14:20:21) jabber: Sending (test2@localhost/r): <stream:stream to='localhost' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0'>
(14:20:21) jabber: Recv (267): <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" version="1.0" id="8129986983794772" from="localhost"><stream:features><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>PLAIN</mechanism></mechanisms></stream:features>
(14:20:21) jabber: Sending (test2@localhost/r): <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' xmlns:ga='http://www.google.com/talk/protocol/auth' ga:client-uses-full-bind-result='true' mechanism='PLAIN'>password removed</auth>
(14:20:21) jabber: Recv (51): <success xmlns="urn:ietf:params:xml:ns:xmpp-sasl"/>
(14:20:21) jabber: Sending (test2@localhost/r): <stream:stream to='localhost' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0'>
(14:20:21) jabber: Recv (275): <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" version="1.0" id="8129986983794772" from="localhost"><stream:features><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"/><session xmlns="urn:ietf:params:xml:ns:xmpp-session"/></stream:features>
(14:20:21) jabber: Sending (test2@localhost/r): <iq type='set' id='purple43594b97'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><resource>r</resource></bind></iq>
(14:20:21) jabber: Recv (125): <iq type="result" id="purple43594b97"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"><jid>test2@localhost/r</jid></bind></iq>
(14:20:21) jabber: Sending (test2@localhost/r): <iq type='set' id='purple43594b98'><session xmlns='urn:ietf:params:xml:ns:xmpp-session'/></iq>
(14:20:21) jabber: Recv (97): <iq type="result" id="purple43594b98"><session xmlns="urn:ietf:params:xml:ns:xmpp-session"/></iq>
(14:20:22) jabber: Sending (test2@localhost/r): <iq type='get' id='purple43594b99' to='localhost'><query xmlns='http://jabber.org/protocol/disco#items'/></iq>
(14:20:22) jabber: Sending (test2@localhost/r): <iq type='get' id='purple43594b9a' to='localhost'><query xmlns='http://jabber.org/protocol/disco#info'/></iq>
(14:20:22) jabber: Recv (239): <iq type="error" id="purple43594b99" to="test2@localhost/r"><query xmlns="http://jabber.org/protocol/disco#items"/></iq><iq type="error" id="purple43594b9a" to="test2@localhost/r"><query xmlns="http://jabber.org/protocol/disco#info"/></iq>
(14:20:22) jabber: Got a result iq with id purple43594b99 from (null) instead of expected localhost!
(14:20:22) jabber: Got a result iq with id purple43594b9a from (null) instead of expected localhost!

here is the log from node-redis (redis client) debug

send 127.0.0.1:6379 id 3: *2
$7
hgetall
$20
user:test2@localhost

send_command buffered_writes: 0  should_buffer: false
net read 127.0.0.1:6379 id 3: *2
$8
password
$5
test1

send 127.0.0.1:6379 id 1: *2
$4
rpop
$23
offline:test2@localhost

send_command buffered_writes: 0  should_buffer: false
net read 127.0.0.1:6379 id 1: $-1

Here is the log from redis-cli monitor (server):

1424870731.913612 [0 127.0.0.1:54941] "hgetall" "user:test2@localhost"
1424870731.936767 [0 127.0.0.1:54939] "rpop" "offline:test2@localhost"

For comparison here is the node-redis and redis-cli logs from a successful connection via Adium

send 127.0.0.1:6379 id 3: *2
$7
hgetall
$20
user:test2@localhost

send_command buffered_writes: 0  should_buffer: false
net read 127.0.0.1:6379 id 3: *2
$8
password
$5
test1

send 127.0.0.1:6379 id 1: *2
$4
rpop
$23
offline:test2@localhost

send_command buffered_writes: 0  should_buffer: false
net read 127.0.0.1:6379 id 1: $-1

send 127.0.0.1:6379 id 2: *2
$8
smembers
$22
roster:test2@localhost

send_command buffered_writes: 0  should_buffer: false
net read 127.0.0.1:6379 id 2: *0
1424870801.584255 [0 127.0.0.1:54941] "hgetall" "user:test2@localhost"
1424870801.662982 [0 127.0.0.1:54939] "rpop" "offline:test2@localhost"
1424870801.677138 [0 127.0.0.1:54940] "smembers" "roster:test2@localhost"
@julien51
Copy link
Member

julien51 commented Mar 2, 2015

We're looking for a maintainer for this library. Would you be interested in taking over?

@julien51 julien51 closed this as completed Mar 2, 2015
@cyphunk
Copy link
Author

cyphunk commented Mar 4, 2015

sorry i dont deal with xmpp enough to be a good maintainer for this project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants