lazr.restfulclient.errors.HTTPError: HTTP Error 414: Request-URI Too Large querying branches

Bug #563711 reported by Robert Collins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

 affects launchpad-code
 done

Issuing a launchpad.branches.getByUrls(urls=[126 items])

I get:

    branches = self.launchpad.branches.getByUrls(urls=branch_urls)
  File "/usr/lib/pymodules/python2.6/lazr/restfulclient/resource.py",
line 482, in __call__
    url, in_representation, http_method, extra_headers=extra_headers)
  File "/usr/lib/pymodules/python2.6/lazr/restfulclient/_browser.py",
line 269, in _request
    raise HTTPError(response, content)
lazr.restfulclient.errors.HTTPError: HTTP Error 414: Request-URI Too
Large
Response headers:
---
connection: close
content-length: 369
content-type: text/html; charset=iso-8859-1
date: Thu, 15 Apr 2010 10:27:56 GMT
server: Apache/2.2.8 (Ubuntu) mod_ssl/2.2.8 OpenSSL/0.9.8g
status: 414
vary: Accept-Encoding
---
Response body:
---
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>414 Request-URI Too Large</title>
</head><body>
<h1>Request-URI Too Large</h1>
<p>The requested URL's length exceeds the capacity
limit for this server.<br />
</p>
<hr>
<address>Apache/2.2.8 (Ubuntu) mod_ssl/2.2.8 OpenSSL/0.9.8g Server at
feeds.edge.launchpad.net Port 443</address>
</body></html>

---

I figure one query is better for server load, given all other things are
equal. I'll break this into multiple requests for now, to work around
it.

Tags: lp-code
Paul Hummer (rockstar)
Changed in launchpad-code:
status: New → Triaged
importance: Undecided → Low
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.