Comment 0 for bug 707075

Revision history for this message
Guilherme Salgado (salgado) wrote : lp-propose fails with a 404 error

All of a sudden lp-propose decided it was not authorized to pose as myself on Launchpad so it asked for my authorization yet again. After I granted full rights to bzr, it failed with the following error:
(extra debug log thanks to httplib2.debuglevel=1)

Notice the "send: 'GET /beta/1.0/" line; according to Leonard, that's what's causing the problem here.

send: 'POST /+access-token HTTP/1.1\r\nHost: launchpad.net\r\nAccept-Encoding: identity\r\nContent-Length: 188\r\nreferer: https://launchpad.net/\r\nuser-agent: Python-httplib2/$Rev$\r\n\r\n'
send: 'oauth_signature=<redacted>&oauth_consumer_key=bzr&oauth_token=<redacted>&oauth_signature_method=PLAINTEXT'
reply: 'HTTP/1.1 200 Ok\r\n'
header: Date: Mon, 24 Jan 2011 18:36:21 GMT
header: Server: zope.server.http (HTTP)
header: X-Powered-By: Zope (www.zope.org), Python (www.python.org)
header: X-Content-Type-Warning: guessed from content
header: Content-Type: text/plain;charset=utf-8
header: Content-Length: 148
header: Vary: Cookie,Authorization,Accept-Encoding
header: Via: 1.1 launchpad.net
send: 'GET /beta/1.0/ HTTP/1.1\r\nHost: api.launchpad.net\r\nAuthorization: OAuth realm="OAuth", oauth_nonce="<redacted>", oauth_timestamp="1295894181", oauth_consumer_key="bzr", oauth_signature_method="PLAINTEXT", oauth_version="1.0", oauth_token="<redacted>", oauth_signature="<redacted>"\r\naccept-encoding: gzip, deflate\r\naccept: application/vnd.sun.wadl+xml\r\nuser-agent: lazr.restfulclient 0.9.20; oauth_consumer="bzr"\r\n\r\n'
reply: 'HTTP/1.1 404 Not Found\r\n'
header: Date: Mon, 24 Jan 2011 18:36:22 GMT
header: Server: zope.server.http (HTTP)
header: X-Powered-By: Zope (www.zope.org), Python (www.python.org)
header: X-Lazr-Oopsid: OOPS-1850G1508
header: Content-Type: text/plain
header: Content-Length: 2344
header: Via: 1.1 wildcard.launchpad.net
bzr: failed to report crash using apport:
     OSError(13, 'Permission denied')
bzr: ERROR: lazr.restfulclient.errors.HTTPError: HTTP Error 404: Not Found
Response headers:
---
content-length: 2344
content-type: text/plain
date: Mon, 24 Jan 2011 18:36:22 GMT
server: zope.server.http (HTTP)
status: 404
via: 1.1 wildcard.launchpad.net
x-lazr-oopsid: OOPS-1850G1508
x-powered-by: Zope (www.zope.org), Python (www.python.org)
---
Response body:
---
Object: <canonical.launchpad.systemhomes.WebServiceApplication object at 0x8a4b6d0>, name: u'1.0'

Traceback (most recent call last):
  File "/srv/launchpad.net/production/launchpad-rev-12248/eggs/zope.publisher-3.12.0-py2.6.egg/zope/publisher/publish.py", line 131, in publish
    obj = request.traverse(obj)
  File "/srv/launchpad.net/production/launchpad-rev-12248/eggs/lazr.restful-0.15.0-py2.6.egg/lazr/restful/publisher.py", line 236, in traverse
    result = super(WebServiceRequestTraversal, self).traverse(ob)
  File "/srv/launchpad.net/production/launchpad-rev-12248/eggs/zope.publisher-3.12.0-py2.6.egg/zope/publisher/browser.py", line 542, in traverse
    ob = super(BrowserRequest, self).traverse(obj)
  File "/srv/launchpad.net/production/launchpad-rev-12248/eggs/zope.publisher-3.12.0-py2.6.egg/zope/publisher/http.py", line 455, in traverse
    ob = super(HTTPRequest, self).traverse(obj)
  File "/srv/launchpad.net/production/launchpad-rev-12248/eggs/zope.publisher-3.12.0-py2.6.egg/zope/publisher/base.py", line 261, in traverse
    obj = publication.traverseName(self, obj, entry_name)
  File "/srv/launchpad.net/production/launchpad-rev-12248/eggs/lazr.restful-0.15.0-py2.6.egg/lazr/restful/publisher.py", line 98, in traverseName
    request, ob, name)
  File "/srv/launchpad.net/production/launchpad-rev-12248/eggs/zope.app.publication-3.9.0-py2.6.egg/zope/app/publication/zopepublication.py", line 197, in traverseName
    ob2 = adapter.publishTraverse(request, nm)
  File "/srv/launchpad.net/production/launchpad-rev-12248/lib/canonical/launchpad/browser/launchpad.py", line 722, in publishTraverse
    return Navigation.publishTraverse(self, request, name)
  File "/srv/launchpad.net/production/launchpad-rev-12248/lib/canonical/launchpad/webapp/publisher.py", line 661, in publishTraverse
    nextobj = self._publishTraverse(request, name)
  File "/srv/launchpad.net/production/launchpad-rev-12248/lib/canonical/launchpad/webapp/publisher.py", line 785, in _publishTraverse
    return self._handle_next_object(nextobj, request, name)
  File "/srv/launchpad.net/production/launchpad-rev-12248/lib/canonical/launchpad/webapp/publisher.py", line 691, in _handle_next_object
    raise NotFound(self.context, name)
NotFound: Object: <canonical.launchpad.systemhomes.WebServiceApplication object at 0x8a4b6d0>, name: u'1.0'