I have been able to reproduce your issue. The action will error without a script, however with your after script the action considers itself to have succeeded.
The action is simply logging the error that it got. The action would return a failure at this point, however the after script is run first. The script you have supplied forces the action to then return success if the status code is below or equal to 400.
To stop these errors from appearing you could do one of two things.
1. Stop all logging on the action. (Logging Properties | Suppress Log Messages | Suppress Log Messages) 2. Add an output Monitor to suppress the styles of errors that you don’t want.
This is turning into a huge fire for me, and I really need help getting it closed.
I had this same problem in finalbuilder 7, and Vincent released an update that solved it.
So I have it solved in finalbuilder.
But in automize, it is wide open on build 213.
The problem is that my scripts cannot be "sure" that all is well. I need to be able to do an http verb, and test the http result code, and decide for myself which result codes are acceptable. For example, for certain actions I may require a 200 result, for others a 302, for others 5xx....
I need all the usual Automize logic (e.g. 302 is success, but if it is <> 302, then retry 3 times before failing the action...)
Jason, Thanks a ton for the update! Watching the thread! (this forum system seems not to send me email… that is why I am slow to respond sometimes… I have to come and look)
It is this build which had fixed the http get response code not being updated.
So just to be clear and make sure I am fixing the exact issue your having. Currently your not getting a valid response code (its always zero) which means the on after action script does not perform as you would expect and allow responses of 302 to be considered valid.
The “302 is success, but if it is <> 302, then retry 3 times before failing the action…” would be serviced by testing the response code in the on after action, and setting variables as require for a retry loop.
Out of the box, the http get action requires a 200 response or it fails the action.
I need to accept 200 or 3xx codes and succeed the action.
I have the below after action script. This works properly in finalbuilder (where the below script and a 302 response = action success), but in automize the action still fails.