in reply to Re: Net::XMPP in Win32 gets not-authorized, same code works 100% in Linux
in thread [fixed] Net::XMPP in Win32 gets not-authorized, same code works 100% in Linux

In this part of the code:

my @result = $xmpp->AuthSend(username => $username, password => $password, resource => 'TestClient_'.$VERSION); unless ($result[0] eq 'ok')

@result should be ('ok',''), but in Windows it is ('error','not-authorized')

  • Comment on Re^2: Net::XMPP in Win32 gets not-authorized, same code works 100% in Linux
  • Download Code

Replies are listed 'Best First'.
Re^3: Net::XMPP in Win32 gets not-authorized, same code works 100% in Linux
by BrowserUk (Patriarch) on Jan 09, 2009 at 09:15 UTC

    Okay. The way you originally reported the error it looked like a mis-quoted user permissions error. I know nothing about XMPP, (not even what it was till I looked up the module).

    However, I did notice Net::XMPP::Debug with options for having high and low level calls logged. The output from that might give you some clues where to look.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
      That module seems to be used internally for the other Net::XMPP modules, but I'll dig deep into it to see if I can use it myself. Thanks!