Handle Error "Break"

What is best way to handle this error ?

  • I want to handle errors of this API server, but this server return a status code 200 even with an error message in the body, like that :
[
    {
        "statusCode": 200,
        "headers": [...],
        "cookieHeaders": [...],
        "data": "Unable to connect to MySQL [#2]",
    }
]
  • Therefore the error happen with on the next module “Parse Json”
  • I would like to use the module Break on HTTP module and make an new attempt when the property “Data” contains “Unable to connect to MySQL”
  • Currently I cannot use module Break on HTTP module because it does not return “Data” property.
  • Also, how I can display incomplete executions of all scenarios on Make ?
    I have more 200 scenarios and I would like to avoid to check one by one.

Screenshots


Make a duplicate of the HTTP and Parse JSON module, and put it in the error handling route. Then, delete the Break and replace it with a Resume module.

2 Likes

Like that ? I am not sure.


Thanks

2 Likes

Yes, but in the error handling route of the Parse JSON module, because that’s where the error is generated.

2 Likes

Maybe is a stupid question.
Do I have to fill out all these fields ?
Here, there are more 75 fields and I have more 40 scenarios with same errors handler to create.
Is there a way to make this quickly ?

Thanks

Not really.