My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 2133: Invalid json returned on login failure from ClientLogin
2 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


Sign in to add a comment
 
Reported by jfriedl@gmail.com, Jun 15, 2010
Name of API affected:
Accounts APIs

Issue summary:

Submitting ClientLogin with alt=json and incorrect credentials returns the string

       Error=BadAuthentication

which I believe is invalid JSON. It should be something along these lines:

      {"Error":"BadAuthentication"}

Steps to reproduce issue:
1. submit a ClientLogin request with alt=json and invalid credentials
2.
3.

Expected output:

Valid JSON that indicates an invalid login

Actual results:

Invalid JSON
Jun 15, 2010
#1 jfriedl@gmail.com
Duh, sorry, it seems that json is not supported at all for ClientLogin. I guess that's the "bug".
Jun 15, 2010
#2 jfriedl@gmail.com
Even for API points advertised as allowing alt=json, errors are reported as raw non-JSON text. For example, attempting to fetch a list of photos for an album that has been deleted returns "No album found." instead of something along the lines of {"Error":"No album found."}
Sign in to add a comment

Powered by Google Project Hosting