Comment 5 for bug 318112

Revision history for this message
Leonard Richardson (leonardr) wrote :

OK, for future reference here's the request that failed.

---
GET /beta/bugs/204137 HTTP/1.1
Host: api.edge.launchpad.net:443
Accept-Encoding: identity
Authorization: OAuth realm="https://api.launchpad.net", oauth_nonce="22198296",oauth_timestamp="1232653826", oauth_consumer_key="arsenal", oauth_signature_method="PLAINTEXT", oauth_version="1.0", oauth_token="xxx", oauth_signature="&NV8cRVkJpK6LLRVzJBRwJskqqlqW85T9lmjpBPK6pnxwL6jmcd8Dxsnd5sHC1tXfw9FFHQCSb9WScNJm"
if-none-match: "fccbde03cd81dc6492f3906181061f8ab642edc1"
te: deflate, gzip
accept: application/json
user-agent: Python-httplib2/$Rev: 259 $

reply: 'HTTP/1.1 401 Unauthorized\r\n'
header: Date: Thu, 22 Jan 2009 19:50:27 GMT
header: Server: zope.server.http (HTTP)
header: X-Powered-By: Zope (www.zope.org), Python (www.python.org)
header: X-Lazr-Oopsid: OOPS-1118ED241
header: Content-Type: text/plain
header: Content-Length: 58
---

The missing piece of the puzzle is the error message, those 58 bytes in the body of the 401 response. Can I ask you to run your code in a try/catch clause like this:

try:
   ... do whatever
except HTTPError, e:
   print e.content

Let's see what the server says about the request. Then I think salgado might have a clue what's going on, or it might be obvious.