This seems to be occurring a lot today, maybe 75% of the time. It occurs during initial auth with launchpad.
In the 25% of the time where it succeeds, I get a few operations in and then either bug 319710 or some other error throws an exception.
Maybe launchpad is just unstable today, not sure. If that's the case, a better error message would be nice.
send: 'POST /+access-token HTTP/1.1\r\nHost: edge.launchpad.net:443\r\nAccept-Encoding: identity\r\nContent-Length: 192\r\nuser-agent: Python-httplib2/$Rev: 259 $\r\n\r\n'
send: 'oauth_signature=%26gZ037lL7DqvbTDDfc2WrTFGFh4mMPl1J6VsKk82DBkBV8kcDD5F0CsPPwHSSr9nbrtgHd13TQ372SPjN&oauth_consumer_key=arsenal&oauth_token=cdbSVrnRp0hNVlHFwcgG&oauth_signature_method=PLAINTEXT'
reply: 'HTTP/1.1 200 Ok\r\n'
header: Date: Fri, 20 Feb 2009 22:41:10 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 edge.launchpad.net
send: 'GET /beta/ HTTP/1.1\r\nHost: api.edge.launchpad.net:443\r\nAccept-Encoding: identity\r\nte: deflate, gzip\r\nAuthorization: OAuth realm="https://api.launchpad.net", oauth_nonce="14993126", oauth_timestamp="1235169677", oauth_consumer_key="arsenal", oauth_signature_method="PLAINTEXT", oauth_version="1.0", oauth_token="mN0PBcGB9WC6wlmzG7KP", oauth_signature="&vB3Fg8rLBkDHH4jl7WW9h7hfWl9h4Gj4RffS8z4mNw8H3C3t4qrD1vvbPJm2RdD9zphHsKWzFzJLW0tz"\r\naccept: application/vd.sun.wadl+xml\r\nuser-agent: Python-httplib2/$Rev: 259 $\r\n\r\n'
reply: 'HTTP/1.1 200 Ok\r\n'
header: Date: Fri, 20 Feb 2009 22:41:11 GMT
header: Server: zope.server.http (HTTP)
header: X-Powered-By: Zope (www.zope.org), Python (www.python.org)
header: Content-Type: application/vd.sun.wadl+xml
header: Content-Length: 630963
header: Etag: "7819-application/vd.sun.wadl+xml"
header: Vary: Cookie,Authorization,Accept
header: Via: 1.1 wildcard.edge.launchpad.net
send: 'GET /beta/ HTTP/1.1\r\nHost: api.edge.launchpad.net:443\r\nAccept-Encoding: identity\r\nAuthorization: OAuth realm="https://api.launchpad.net", oauth_nonce="26081154", oauth_timestamp="1235169679", oauth_consumer_key="arsenal", oauth_signature_method="PLAINTEXT", oauth_version="1.0", oauth_token="mN0PBcGB9WC6wlmzG7KP", oauth_signature="&vB3Fg8rLBkDHH4jl7WW9h7hfWl9h4Gj4RffS8z4mNw8H3C3t4qrD1vvbPJm2RdD9zphHsKWzFzJLW0tz"\r\nif-none-match: "7819-application/json"\r\nte: deflate, gzip\r\naccept: application/json\r\nuser-agent: Python-httplib2/$Rev: 259 $\r\n\r\n'
reply: ''
send: 'GET /beta/ HTTP/1.1\r\nHost: api.edge.launchpad.net:443\r\nAccept-Encoding: identity\r\nAuthorization: OAuth realm="https://api.launchpad.net", oauth_nonce="26081154", oauth_timestamp="1235169679", oauth_consumer_key="arsenal", oauth_signature_method="PLAINTEXT", oauth_version="1.0", oauth_token="mN0PBcGB9WC6wlmzG7KP", oauth_signature="&vB3Fg8rLBkDHH4jl7WW9h7hfWl9h4Gj4RffS8z4mNw8H3C3t4qrD1vvbPJm2RdD9zphHsKWzFzJLW0tz"\r\nif-none-match: "7819-application/json"\r\nte: deflate, gzip\r\naccept: application/json\r\nuser-agent: Python-httplib2/$Rev: 259 $\r\n\r\n'
reply: 'HTTP/1.1 502 Bad Gateway\r\n'
header: Date: Fri, 20 Feb 2009 22:41:13 GMT
header: Server: Apache/2.2.8 (Ubuntu) mod_ssl/2.2.8 OpenSSL/0.9.8g
header: Last-Modified: Fri, 30 Jan 2009 16:55:58 GMT
header: ETag: "48831d-399-461b614380380"
header: Accept-Ranges: bytes
header: Content-Length: 921
header: Connection: close
header: Content-Type: text/html
Traceback (most recent call last):
File "./expire-bugs.py", line 17, in <module>
arsenal = Arsenal()
File "/home/bryce/src/Arsenal/arsenal/contrib/arsenal_lib.py", line 64, in __init__
self.launchpad = Launchpad.get_token_and_login(self.name, EDGE_SERVICE_ROOT, self.cachedir)
File "build/bdist.linux-x86_64/egg/launchpadlib/launchpad.py", line 155, in get_token_and_login
File "build/bdist.linux-x86_64/egg/launchpadlib/launchpad.py", line 65, in __init__
File "build/bdist.linux-x86_64/egg/launchpadlib/_browser.py", line 222, in get
File "build/bdist.linux-x86_64/egg/launchpadlib/_browser.py", line 212, in _request
launchpadlib.errors.HTTPError: HTTP Error 502: Bad Gateway
I'm no longer seeing this issue