HTTP 412 errors when trying to alter a BugTask using the API

Bug #513198 reported by Graham Binns
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

When I try to set the status and importance of a BugTask using the API and then subsequently call lp_save() on that BugTask, I intermittently get an HTTP 412 error:

Traceback (most recent call last):
  File "/home/graham/bin/file-many-bugs.py", line 39, in <module>
    initial_task.lp_save()
  File "/usr/lib/python2.5/site-packages/lazr/restfulclient/resource.py", line 603, in lp_save
    URI(self.self_link), representation, headers)
  File "/usr/lib/python2.5/site-packages/lazr/restfulclient/_browser.py", line 258, in patch
    'PATCH', extra_headers=extra_headers)
  File "/usr/lib/python2.5/site-packages/lazr/restfulclient/_browser.py", line 204, in _request
    raise HTTPError(response, content)
lazr.restfulclient.errors.HTTPError: HTTP Error 412: Precondition Failed

I can't be sure that this isn't an issue with launchpadlib, but given that it started happening immediately after rollout I'm guessing it's server-side.

Revision history for this message
Gary Poster (gary) wrote :

I'll ask Leonard for an idea on how to debug this further.

Changed in launchpad-foundations:
status: New → Incomplete
status: Incomplete → Triaged
importance: Undecided → Low
assignee: nobody → Leonard Richardson (leonardr)
assignee: Leonard Richardson (leonardr) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.