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--
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<-- JSONDecodeError : Expecting value: line 1 column 1 (char 0)
json.decoder.
-->8--
The launchpad.net API seems to randomly return an empty JSON response (Content-Length: 0) with HTTP 200 OK status:
--8<-- /launchpad. net/api/ 1.0/~ondrej/ +archive/ php' security- policy: frame-ancestors 'self'; 36a3658b0e5f46b 744710a71bf- e9898177223b67f 4aa967ca5902a80 f788c0e988" transport- security: max-age=15552000 type-options: nosniff revision: bd6cfd0cfc024db e1dcd7d5d91165f b4f6a6c596 notifications: [] e1dcd7d5d91165f b4f6a6c596 5cf5-4254- 8f37-87a74aad4e 64 prod-launchpad- 30 prod-launchpad- 30:3128 prod-launchpad- 30 (squid/4.10)
$ curl -s -D - H 'Accept: application/json' 'https:/
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-
ETag: "1314eaf9a8097c
strict-
Vary: Accept
x-content-
x-frame-options: SAMEORIGIN
x-launchpad-
x-lazr-
x-xss-protection: 1; mode=block
x-vcs-revision: bd6cfd0cfc024db
x-request-id: 9c7c3d4a-
Age: 6
X-Cache: HIT from juju-98d295-
X-Cache-Lookup: HIT from juju-98d295-
Via: 1.1 juju-98d295-
-->8--