ContributionsMost RecentMost LikesSolutionsRe: Rest API chunked response gives corrupt data stream in error logs Olga_Twrote: Hi all, richie, thank you for your reply. Raghav19,chaitu219have you managed to find any solution or workaround, or does the issue persist? Olga_T,The issue still persists for me. Rest API chunked response gives corrupt data stream in error logs Hi, I have SOAP UI pro and for a specific request when i hit , the response is recieved complete in the HTTP logs,but the request as well as response is not displayed on the UI as seen in the image. The error logs show Corrupt data stream though the request hits successfully and response is also generated. The same request works fine with Postman.What needs to be enabled/disabled/set for this to be successfully generated. Further analysis of this made me go through the header Transfer-encoding:chunked because of which the response is recieved in chunks and SOAPUI pro isnt able to handle the chunked response and gives error in the logs. How can I do a workaround for this Re: Rest API chunked response gives corrupt data stream in error logs Tried further by enabling Chunking Threshold in settings but issue remains the same. API script assertion not running when running from testcase although run from step is success I have a testcase with one API for which Script assertion is used to ready the ReadyAPI log. This script runs and passes the step when run from the step directly. But when i run from the testcase level, it fails, not sure why this occurs. My requirement is to run the script irrespective of pass or fail of the request because my script is reading the log to understand that. The API request and script are as follows: //https://community.smartbear.com/t5/SoapUI-Open-Source/How-to-read-Request-log-from-groovy/td-p/29362# def logArea = com.eviware.soapui.SoapUI.logMonitor.getLogArea("ReadyAPI Log"); def model = logArea.model if (model.size > 0) { val = false for (c in 0..(model.size - 1)) { if (String.valueOf(model.getElementAt(c)).contains("Connection refused: connect")){ log.info(model.getElementAt(c)) val = true break } } if(val != true) { throw new Exception("Assertion failed") } } else { throw new Exception("Assertion failed here") } Re: Script Assertion not running when request failed[Connection refused] in request log and no response HiHimanshuTayal, Thanks for the response. THe error that i am getting is expected and intended. I am wondering , how come the previous step where groovy script is running my test step is getting marked as red and failing. Is it because the request is failing. I would like to capture the Request log and assert something there. if I run without the groovy script directly, I am observing , my script assertion doesnt seem to run in the API assertion Re: Script Assertion not running when request failed[Connection refused] in request log and no response I have a script which triggers a specific API call step After the step calls the Create Auth Token request , I get Connection refused in my Request log but then the groovy caller code is getting marked as fail as show. Another solution that i was trying was to read the Request Log of the API call from groovy script for which I couldnt find any Script Assertion not running when request failed[Connection refused] in request log and no response Script assertion in my API request is not running when request log shows Connection refused and there is no reponse. This happens when i run the test case as a set with multiple steps and if i run the API step manually, the assertion seems to work? How come? I want the script assertion to run even if the request fails as i am reading the Error log of ReadyAPI via groovy script and doing an assertion Is there a way? Capture request log via groovy script from a specific test step I have a groovy script from where i invoke a API call. The API call "Request log" section is required in my groovy script. def logArea = com.eviware.soapui.SoapUI.logMonitor.getLogArea( "Request Log" ); def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context.get) if( logArea !=null ) { def model = logArea.model // only continue of logArea not empty if( model.size > 0 ) { for( c in 0..(model.size-1) ) { log.info(model.getElementAt(c)) } } } This cant get it from the next step which is my API call. Kindly help