mojodna / switchboard

(formerly-in-use) A toolkit for assembling XMPP clients and interacting with XMPP servers.
135 stars 8 forks source link

switchboard bin not picking up hostnames #4

Closed igrigorik closed 15 years ago

igrigorik commented 15 years ago

switchboard disco --target pubsub.im.wordpress.com info

Results in...

Shutdown initiated. /opt/local/lib/ruby/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/connection.rb:66:in initialize': Connection refused - connect(2) (Errno::ECONNREFUSED) from /opt/local/lib/ruby/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/connection.rb:66:innew' from /opt/local/lib/ruby/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/connection.rb:66:in connect' from /opt/local/lib/ruby/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/client.rb:70:inconnect' from /opt/local/lib/ruby/gems/1.8/gems/switchboard-0.1.0/lib/switchboard/client.rb:43:in connect!' from /opt/local/lib/ruby/gems/1.8/gems/switchboard-0.1.0/lib/switchboard/core.rb:254:instartup' from /opt/local/lib/ruby/1.8/timeout.rb:62:in timeout' from /opt/local/lib/ruby/gems/1.8/gems/switchboard-0.1.0/lib/switchboard/core.rb:251:instartup' from /opt/local/lib/ruby/gems/1.8/gems/switchboard-0.1.0/lib/switchboard/core.rb:71:in run!' from /opt/local/lib/ruby/gems/1.8/gems/switchboard-0.1.0/lib/switchboard/commands/disco/info.rb:34:inrun!' from ./switchboard:7

Quick debug shows that 'hostname' is picked up as a newline.

mojodna commented 15 years ago

Where is hostname being picked up?

Are you using this with a $HOME/.switchboardrc to set your JID and password?

igrigorik commented 15 years ago

Ah, permission problems ftw. Got it working.

mojodna commented 15 years ago

Sweet, glad to hear.