Comment 15 for bug 380504

Revision history for this message
Bryce Harrington (bryce) wrote : Re: HTTP Error 502: Bad Gateway

I'm still seeing this bug quite a bit. We're expanding use of my scripts to the rest of the desktop team, as well as the kernel team.

The workaround of lacing scripts with lots and lots of exception handling code is quite a drag, it would be really nice to get a proper solution.

It would be nice if the launchpadlib api handled the exceptions internally where possible. A couple random ideas:

  * Provide an API call which simply checks if the Launchpad service is up and will continue being up for $time.

  * For highly transient exceptions, have launchpadlib try one additional time before tossing an exception up to the client, perhaps with a (configurable) sleep between the retries.