reused api oauth nonce causes oops
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Critical
|
Brad Crittenden |
Bug Description
I have a cron job running lp:kanban periodically, across ~canonical-bazaar.
Just once, a couple of days ago, it failed as follows:
Traceback (most recent call last):
File "./bin/kanban", line 14, in <module>
main(sys.argv)
File "./kanban/
controller.
File "/home/
run_bzr(argv)
File "/usr/lib/
ret = run(*run_argv)
File "/usr/lib/
return self.run_
File "/usr/lib/
return self._operation
File "/usr/lib/
self.cleanups, self.func, *args, **kwargs)
File "/usr/lib/
result = func(*args, **kwargs)
File "./kanban/
bugs = get_person_
File "./kanban/
bug_
File "./kanban/
assignee=
File "/usr/lib/
unicode(
File "/usr/lib/
response, content = self._request(url, extra_headers=
File "/usr/lib/
raise HTTPError(response, content)
lazr.restfulcli
Response headers:
---
content-length: 58
content-type: text/plain
date: Sat, 02 Apr 2011 16:48:07 GMT
server: zope.server.http (HTTP)
status: 401
via: 1.1 wildcard.
x-lazr-oopsid: OOPS-1918G1133
x-powered-by: Zope (www.zope.org), Python (www.python.org)
---
Response body:
---
Invalid nonce/timestamp: This nonce has been used already.
---
Related branches
- j.c.sackett (community): Approve
-
Diff: 418 lines (+92/-55)3 files modifiedlib/canonical/launchpad/doc/webapp-publication.txt (+50/-33)
lib/canonical/launchpad/interfaces/oauth.py (+22/-6)
lib/canonical/launchpad/webapp/servers.py (+20/-16)
Changed in launchpad: | |
assignee: | nobody → Brad Crittenden (bac) |
tags: |
added: qa-ok removed: qa-needstesting |
summary: |
- 401 "this nonce has been used already" error from api + reused api oauth nonce causes oops |
Changed in launchpad: | |
status: | Fix Committed → Fix Released |
do you have any code that would retry requests in there?