Comment 2 for bug 2039251

Revision history for this message
Jérôme (jerome-auge) wrote :

I'm also observing random failures using Ansible's apt_repository module when deploying/configuring some hosts. The apt_repository module breaks with the following error:

--8<--
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
-->8--

The launchpad.net API seems to randomly return an empty JSON response (Content-Length: 0) with HTTP 200 OK status:

--8<--
$ curl -s -D - H 'Accept: application/json' 'https://launchpad.net/api/1.0/~ondrej/+archive/php'
HTTP/1.1 200 OK
         ~~~~~~
Date: Mon, 16 Oct 2023 11:51:19 GMT
Server: gunicorn
Content-Type: application/json
x-powered-by: Zope (www.zope.org), Python (www.python.org)
Content-Length: 0
               ~~~
content-security-policy: frame-ancestors 'self';
ETag: "1314eaf9a8097c36a3658b0e5f46b744710a71bf-e9898177223b67f4aa967ca5902a80f788c0e988"
strict-transport-security: max-age=15552000
Vary: Accept
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN
x-launchpad-revision: bd6cfd0cfc024dbe1dcd7d5d91165fb4f6a6c596
x-lazr-notifications: []
x-xss-protection: 1; mode=block
x-vcs-revision: bd6cfd0cfc024dbe1dcd7d5d91165fb4f6a6c596
x-request-id: 9c7c3d4a-5cf5-4254-8f37-87a74aad4e64
Age: 6
X-Cache: HIT from juju-98d295-prod-launchpad-30
X-Cache-Lookup: HIT from juju-98d295-prod-launchpad-30:3128
Via: 1.1 juju-98d295-prod-launchpad-30 (squid/4.10)

-->8--