2011-07-14 20:42:06 |
Diogo Matsubara |
description |
I was writing an API client for bzr that will check if a package-import branch has the latest published source. I accidentally started passing "distro_series='/ubuntu/natty/'" and I would get Internal Server Error.
I'm guessing there is an OOPS associated with this, but I never saw it on my side. To reproduce, you can just go to:
https://api.launchpad.net/1.0/ubuntu/+archive/primary?distro_series=%2Fubuntu%2Fnatty%2F&exact_match=true&source_name=%22bzr%22&status=Published&ws.op=getPublishedSources&ws.size=1
this compares with the 'correct' URL:
https://api.launchpad.net/1.0/ubuntu/+archive/primary?distro_series=%2Fubuntu%2Fnatty&exact_match=true&source_name=%22bzr%22&status=Published&ws.op=getPublishedSources&ws.size=1
The returned text is: ComponentLookupError
So maybe there isn't an OOPS, and the 50? response is correct. It seems more like a 404 to me, though. |
I was writing an API client for bzr that will check if a package-import branch has the latest published source. I accidentally started passing "distro_series='/ubuntu/natty/'" and I would get Internal Server Error.
I'm guessing there is an OOPS associated with this, but I never saw it on my side. To reproduce, you can just go to:
https://api.launchpad.net/1.0/ubuntu/+archive/primary?distro_series=%2Fubuntu%2Fnatty%2F&exact_match=true&source_name=%22bzr%22&status=Published&ws.op=getPublishedSources&ws.size=1
this compares with the 'correct' URL:
https://api.launchpad.net/1.0/ubuntu/+archive/primary?distro_series=%2Fubuntu%2Fnatty&exact_match=true&source_name=%22bzr%22&status=Published&ws.op=getPublishedSources&ws.size=1
The returned text is: ComponentLookupError
OOPS-2020AO138 ComponentLookupError: ((<lazr.restful.declarations.DistroSeriesEntry_1_0Adapter object at 0x10730050>, <canonical.launchpad.webapp.servers.WebServiceClientRequest instance URL=http://1.0/ubuntu/natty/>), <InterfaceClass lazr.restful.interfaces._rest.IEntry>, u'') |
|