mirror of
https://github.com/home-assistant/core.git
synced 2026-10-09 15:56:23 -04:00
Fix Envoy diagnostics fixture download on non-UTF-8 responses (#177008)
This commit is contained in:
@@ -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(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user