File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
src/unstract/api_deployments Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,11 @@ def structure_file(self, file_paths: list[str]) -> dict:
147147 response_data = response .json ()
148148 response_message = response_data .get ("message" , {})
149149 except JSONDecodeError :
150- self .logger .error ("Failed to decode JSON response" , exc_info = True )
150+ self .logger .error (
151+ "Failed to decode JSON response. Raw response: %s" ,
152+ response .text ,
153+ exc_info = True ,
154+ )
151155 obj_to_return = {
152156 "status_code" : response .status_code ,
153157 "pending" : False ,
@@ -227,7 +231,11 @@ def check_execution_status(self, status_check_api_endpoint: str) -> dict:
227231 try :
228232 response_data = response .json ()
229233 except JSONDecodeError :
230- self .logger .error ("Failed to decode JSON response" , exc_info = True )
234+ self .logger .error (
235+ "Failed to decode JSON response. Raw response: %s" ,
236+ response .text ,
237+ exc_info = True ,
238+ )
231239 obj_to_return = {
232240 "status_code" : response .status_code ,
233241 "pending" : False ,
You can’t perform that action at this time.
0 commit comments