Fix Envoy diagnostics fixture download on non-UTF-8 responses (#177008)

This commit is contained in:
Richard H
2026-07-24 07:07:30 +00:00
committed by Franck Nijhof
parent 0b0dd55e4d
commit 0017266e77
@@ -79,7 +79,9 @@ async def _get_fixture_collection(envoy: Envoy, serial: str) -> dict[str, Any]:
try:
response: ClientResponse = await envoy.request(end_point)
fixture_data[end_point] = (
(await response.text()).replace("\n", "").replace(serial, CLEAN_TEXT)
(await response.text(errors="replace"))
.replace("\n", "")
.replace(serial, CLEAN_TEXT)
)
fixture_data[f"{end_point}_log"] = json_dumps(
{