[Pidgin] #11724: 503 service unavailable should read "not authorized" or "login failed"

Pidgin trac at pidgin.im
Thu Apr 22 20:13:37 EDT 2010


#11724: 503 service unavailable should read "not authorized" or "login failed"
----------------------------------------------------------------------------------------+
 Reporter:  kermit                                                                      |        Owner:  deryni
     Type:  defect                                                                      |       Status:  new   
Milestone:                                                                              |    Component:  XMPP  
  Version:  2.6.6                                                                       |   Resolution:        
 Keywords:  503 service unavailable facebook xmpp jabber not-authorized login password  |  
----------------------------------------------------------------------------------------+
Description changed by kermit:

Old description:

> For days I was getting "503 service unavailable", until I showed the
> debug to someone and they explained I just entered my password wrong. I
> never thought "503 service unavailable" would mean that.  The server also
> gives a message "not authorized", which would be a little clearer to the
> user, at a minimum.
>
> (00:13:56) jabber: Sending (kermit4 at chat.facebook.com/Pidgin): <?xml
> version='1.0' ?>
> (00:13:56) jabber: Sending (kermit4 at chat.facebook.com/Pidgin):
> <stream:stream to='chat.facebook.com' xmlns='jabber:client'
> xmlns:stream='http://etherx.jabber.org/streams' version='1.0'>
> (00:13:56) jabber: Recv (173): <?xml version="1.0"?><stream:stream
> id="A8B05471" from="chat.facebook.com" xmlns="jabber:client"
> xmlns:stream="http://etherx.jabber.org/streams" version="1.0"
> xml:lang="en">
> (00:13:56) jabber: Recv (176): <stream:features><mechanisms
> xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>X-FACEBOOK-
> PLATFORM</mechanism><mechanism>DIGEST-
> MD5</mechanism></mechanisms></stream:features>
> (00:13:56) sasl: Mechs found: X-FACEBOOK-PLATFORM DIGEST-MD5
> (00:13:56) sasl: No worthy mechs found
> (00:13:58) sasl: Mechs found: X-FACEBOOK-PLATFORM DIGEST-MD5
> (00:13:58) sasl: DIGEST-MD5 client step 1
> (00:13:58) jabber: Sending (kermit4 at chat.facebook.com/Pidgin): <auth
> xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='DIGEST-MD5'
> xmlns:ga='http://www.google.com/talk/protocol/auth' ga:client-uses-full-
> bind-result='true'>password removed</auth>
> (00:13:58) pidgin-encryption: Using pre-existing menu icon for conv
> 0xa230a90, win 0xaa96800, item 0xa9db1d8
> (00:13:58) jabber: Recv (212): <challenge xmlns="urn:ietf:params:xml:ns
> :xmpp-
> sasl">cmVhbG09ImNoYXQuZmFjZWJvb2suY29tIixub25jZT0iMTBBOEJCMTFFNkVEMDI5MkZEQkU0OEMwM0JGQjEwODgiLHFvcD0iYXV0aCIsY2hhcnNldD11dGYtOCxhbGdvcml0aG09bWQ1LXNlc3M=</challenge>
> (00:13:58) sasl: DIGEST-MD5 client step 2
> (00:13:58) jabber: Sending (kermit4 at chat.facebook.com/Pidgin): <response
> xmlns='urn:ietf:params:xml:ns:xmpp-
> sasl'>dXNlcm5hbWU9Imtlcm1pdDQiLHJlYWxtPSJjaGF0LmZhY2Vib29rLmNvbSIsbm9uY2U9IjEwQThCQjExRTZFRDAyOTJGREJFNDhDMDNCRkIxMDg4Iixjbm9uY2U9ImVVMUk0K2Vya1RJb3UycjBsNE0wbGo1UHQ4S0lrenJaNFFFeEI2SjZnNmc9IixuYz0wMDAwMDAwMSxxb3A9YXV0aCxtYXhidWY9NDA5NixkaWdlc3QtdXJpPSJ4bXBwL2NoYXQuZmFjZWJvb2suY29tIixyZXNwb25zZT1iNTQ3ZGJiMmZiMGJiNmQ4NDNkYjQ3MWQzNzM5OTBkNSxjaGFyc2V0PXV0Zi04</response>
> (00:13:58) jabber: Recv (77): <failure xmlns="urn:ietf:params:xml:ns
> :xmpp-sasl"><not-authorized/></failure>
> (00:13:58) sasl: Mechs found: X-FACEBOOK-PLATFORM
> (00:13:58) sasl: No worthy mechs found
> (00:13:58) jabber: Sending (kermit4 at chat.facebook.com/Pidgin): <iq
> type='get' id='purpleec02662b'><query
> xmlns='jabber:iq:auth'><username>kermit4</username></query></iq>
> (00:13:58) jabber: Recv (173): <iq from="chat.facebook.com"
> id="purpleec02662b" type="error"><error code="503" type="cancel
> "><service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-
> stanzas"/></error></iq>
> (00:13:58) connection: Connection error on 0xa8ae218 (reason: 0
> description: 503: Service Unavailable)
> (00:13:58) account: Disconnecting account
> kermit4 at chat.facebook.com/Pidgin (0x90447b8)
> (00:13:58) connection: Disconnecting connection 0xa8ae218
> (00:13:58) jabber: Sending (kermit4 at chat.facebook.com/Pidgin):
> </stream:stream>

New description:

 For days I was getting "503 service unavailable", until I showed the debug
 to someone and they explained I just entered my password wrong. I never
 thought "503 service unavailable" would mean that.  The server also gives
 a message "not authorized", which would be a little clearer to the user,
 at a minimum.

 The folowing is more readable with highlighting at
 http://pastebin.com/hL0bwwZx

 (00:13:56) jabber: Sending (kermit4 at chat.facebook.com/Pidgin): <?xml
 version='1.0' ?>
 (00:13:56) jabber: Sending (kermit4 at chat.facebook.com/Pidgin):
 <stream:stream to='chat.facebook.com' xmlns='jabber:client'
 xmlns:stream='http://etherx.jabber.org/streams' version='1.0'>
 (00:13:56) jabber: Recv (173): <?xml version="1.0"?><stream:stream
 id="A8B05471" from="chat.facebook.com" xmlns="jabber:client"
 xmlns:stream="http://etherx.jabber.org/streams" version="1.0"
 xml:lang="en">
 (00:13:56) jabber: Recv (176): <stream:features><mechanisms
 xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>X-FACEBOOK-
 PLATFORM</mechanism><mechanism>DIGEST-
 MD5</mechanism></mechanisms></stream:features>
 (00:13:56) sasl: Mechs found: X-FACEBOOK-PLATFORM DIGEST-MD5
 (00:13:56) sasl: No worthy mechs found
 (00:13:58) sasl: Mechs found: X-FACEBOOK-PLATFORM DIGEST-MD5
 (00:13:58) sasl: DIGEST-MD5 client step 1
 (00:13:58) jabber: Sending (kermit4 at chat.facebook.com/Pidgin): <auth
 xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='DIGEST-MD5'
 xmlns:ga='http://www.google.com/talk/protocol/auth' ga:client-uses-full-
 bind-result='true'>password removed</auth>
 (00:13:58) pidgin-encryption: Using pre-existing menu icon for conv
 0xa230a90, win 0xaa96800, item 0xa9db1d8
 (00:13:58) jabber: Recv (212): <challenge xmlns="urn:ietf:params:xml:ns
 :xmpp-
 sasl">cmVhbG09ImNoYXQuZmFjZWJvb2suY29tIixub25jZT0iMTBBOEJCMTFFNkVEMDI5MkZEQkU0OEMwM0JGQjEwODgiLHFvcD0iYXV0aCIsY2hhcnNldD11dGYtOCxhbGdvcml0aG09bWQ1LXNlc3M=</challenge>
 (00:13:58) sasl: DIGEST-MD5 client step 2
 (00:13:58) jabber: Sending (kermit4 at chat.facebook.com/Pidgin): <response
 xmlns='urn:ietf:params:xml:ns:xmpp-
 sasl'>dXNlcm5hbWU9Imtlcm1pdDQiLHJlYWxtPSJjaGF0LmZhY2Vib29rLmNvbSIsbm9uY2U9IjEwQThCQjExRTZFRDAyOTJGREJFNDhDMDNCRkIxMDg4Iixjbm9uY2U9ImVVMUk0K2Vya1RJb3UycjBsNE0wbGo1UHQ4S0lrenJaNFFFeEI2SjZnNmc9IixuYz0wMDAwMDAwMSxxb3A9YXV0aCxtYXhidWY9NDA5NixkaWdlc3QtdXJpPSJ4bXBwL2NoYXQuZmFjZWJvb2suY29tIixyZXNwb25zZT1iNTQ3ZGJiMmZiMGJiNmQ4NDNkYjQ3MWQzNzM5OTBkNSxjaGFyc2V0PXV0Zi04</response>
 (00:13:58) jabber: Recv (77): <failure xmlns="urn:ietf:params:xml:ns:xmpp-
 sasl"><not-authorized/></failure>
 (00:13:58) sasl: Mechs found: X-FACEBOOK-PLATFORM
 (00:13:58) sasl: No worthy mechs found
 (00:13:58) jabber: Sending (kermit4 at chat.facebook.com/Pidgin): <iq
 type='get' id='purpleec02662b'><query
 xmlns='jabber:iq:auth'><username>kermit4</username></query></iq>
 (00:13:58) jabber: Recv (173): <iq from="chat.facebook.com"
 id="purpleec02662b" type="error"><error code="503" type="cancel"><service-
 unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/></error></iq>
 (00:13:58) connection: Connection error on 0xa8ae218 (reason: 0
 description: 503: Service Unavailable)
 (00:13:58) account: Disconnecting account kermit4 at chat.facebook.com/Pidgin
 (0x90447b8)
 (00:13:58) connection: Disconnecting connection 0xa8ae218
 (00:13:58) jabber: Sending (kermit4 at chat.facebook.com/Pidgin):
 </stream:stream>

--

-- 
Ticket URL: <http://developer.pidgin.im/ticket/11724#comment:1>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list