Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Net::XMPP in Win32 gets not-authorized, same code works 100% in Linux

by BrowserUk (Patriarch)
on Jan 09, 2009 at 07:47 UTC ( [id://735107]=note: print w/replies, xml ) Need Help??


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

It gives "not-authorized" in Windows.

What gives 'not authorised'? And is that the actual text of the error message?


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.

Replies are listed 'Best First'.
Re^2: Net::XMPP in Win32 gets not-authorized, same code works 100% in Linux
by wilsond (Scribe) on Jan 09, 2009 at 08:00 UTC

    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')

      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!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://735107]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-03-29 06:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found