Handle HTTP Error 502: Bad Gateway automatically
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Invalid
|
High
|
Unassigned | ||
lazr.restfulclient |
Fix Released
|
High
|
Leonard Richardson |
Bug Description
For the last week or so I've been getting a sporadic but pervasive number of 502 errors running launchpadlib scripts against launchpad. I'd experienced this a while ago before (bug 332302) but it went away after a while; this time it has lasted longer.
I'm assuming it is launchpad database funkiness like before, but let me know if it would be helpful for you to have an example script to repro or an http dump with debugging.
Traceback (most recent call last):
File "/home/
<module>
bug = ArsenalBug(
File "/home/
__init__
self.
File "/usr/lib/
__getattr__
return super(Entry, self)._
File "/usr/lib/
__getattr__
return self.lp_
File "/usr/lib/
lp_get_parameter
self.
File "/usr/lib/
_ensure_
representation = self._root.
File "/usr/lib/
get
response, content = self._request(url, extra_headers=
File "/usr/lib/
_request
raise HTTPError(response, content)
launchpadlib.
Error: (1) Could not create symptoms_intel.json
Related branches
- Brad Crittenden (community): Approve (code)
-
Diff: 245 lines (+168/-5)5 files modifiedsrc/lazr/restfulclient/NEWS.txt (+7/-0)
src/lazr/restfulclient/_browser.py (+21/-2)
src/lazr/restfulclient/docs/retry.standalone.txt (+136/-0)
src/lazr/restfulclient/resource.py (+3/-2)
src/lazr/restfulclient/version.txt (+1/-1)
Changed in launchpadlib: | |
assignee: | nobody → Leonard Richardson (leonardr) |
summary: |
- HTTP Error 502: Bad Gateway + Handle HTTP Error 502: Bad Gateway automatically |
Changed in launchpadlib: | |
assignee: | Tom Haddon (mthaddon) → nobody |
status: | New → Triaged |
Changed in launchpad-foundations: | |
status: | New → Triaged |
importance: | Undecided → Low |
Changed in launchpad-foundations: | |
importance: | Low → High |
tags: | added: canonical-losa-lp |
Changed in launchpad-foundations: | |
status: | Triaged → Invalid |
I get a few complaints from cron about my launchpadlib scripts sporadically failing every day. It has been happening for a while.