Forum Discussion

user2's avatar
user2
Occasional Contributor
4 years ago

status code extraction error

Hi,

I'am using ReadApi 2.8.2 and i'am getting this error when trying to execute test steps that requires too much time to be executed

 

 

Is there any possible way to fix this?

 

 

  • That depends on what you want to do or report.

     

    You have a service that is taking too long, you could extend Ready API's timeout to something much longer, at least then you get a response and the status code assertion will run.

     

    But is the lengthy response time the actual issue?  Should the API be quicker?

  • ChrisAdams's avatar
    ChrisAdams
    Champion Level 3

    That depends on what you want to do or report.

     

    You have a service that is taking too long, you could extend Ready API's timeout to something much longer, at least then you get a response and the status code assertion will run.

     

    But is the lengthy response time the actual issue?  Should the API be quicker?

  • richie's avatar
    richie
    Community Hero
    Hey user2,

    Apologies, but all that failure is showing is that the http response code returned in your response doesnt match what you defined as a valid http response code.

    So we can understand whats going on, can you please add a screenshot of the RAW tab on your response please?
    Also, could you plz confirm what value(s) were addedto the http status code assertion?

    Ta

    Rich