Activity log for bug #716174

Date Who What changed Old value New value Message
2011-02-10 00:19:06 Martin Pool bug added bug
2011-03-14 08:38:00 Robert Collins launchpad: status Triaged Invalid
2011-03-14 11:21:05 Martin Pool launchpad: status Invalid Triaged
2011-03-14 22:41:21 Robert Collins launchpad: status Triaged Invalid
2011-03-14 23:47:37 Martin Pool summary api error messages should be machine-readable api oops id should be exposed to client programs
2011-03-14 23:48:00 Martin Pool bug task added lazr.restful
2011-03-14 23:48:28 Martin Pool bug task added wrested
2011-03-14 23:54:24 Martin Pool description affects launchpad status triaged importance low tags api error-reporting At the moment if an API call fails with, for example, a 503 or 500 oops, you get back a quite large page of html. It would be a bit more useful to most clients if we instead sent either plain text or json description of the problem (including the oops if any), or at least if we made the html more easily machine-parsable by making it xhtml with defined ids. But many clients will want to just print the failure, and for them something short would be better. At the moment if an API call fails with, for example, a 503 or 500 oops, you get back a quite large page of html. It is hard for client programs to do anything with this except dump it to the screen which is ugly. As a result many API failures do not have a visible oops, which makes it harder for the client to know what the problem is, or to give feedback to the Launchpad developers. Launchpad apparently sends back an X-Lazr-OopsID on some (most?) failed requests. If this was parsed out and put into a structured field then clients could eg show a short message to the user about the failure, or accumulate a list of requests that failed and their corresponding oopses. (Separately, it might be nice if the response to failed api requests was a json description of the problem, not html, but that's less important. It does not need to be a fine-grained description: just a dict pointing to the oops id, traceback, etc would be enough.)
2011-03-14 23:55:14 Martin Pool lazr.restful: importance Undecided High
2011-03-14 23:55:14 Martin Pool lazr.restful: status New Triaged
2011-03-14 23:56:52 Martin Pool wrested: status New Triaged
2011-03-14 23:56:54 Martin Pool wrested: importance Undecided High
2012-01-18 21:27:56 Robert Collins bug task deleted launchpad
2012-01-29 21:13:57 Robert Collins summary api oops id should be exposed to client programs api oops id is not exposed to client programs