From 536864e1685a4e8bc52635f4a35baf417d6da0a9 Mon Sep 17 00:00:00 2001 From: Roman Date: Mon, 20 Jan 2025 14:14:59 +0800 Subject: [PATCH] fix: access response.content --- src/steps/da.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/steps/da.py b/src/steps/da.py index f999eb0..50e58a6 100644 --- a/src/steps/da.py +++ b/src/steps/da.py @@ -35,7 +35,8 @@ class StepsDataAvailability(StepsCommon): except Exception as ex: assert "Bad Request" in str(ex) or "Internal Server Error" in str(ex) - # Extract data ss string for each index in the received order - response = response_bytes.decode("utf-8") - parsed_data = json.loads(response) - return [item[1] for item in parsed_data] + # Extract data as a string for each index in the received order + parsed_data = [] + for item in response_bytes.content: + parsed_data.append(item.decode("utf-8")) + return parsed_data