Automize 4: atcmd appears not able to see the http result code?

This question is the automize side of the issue discussed here:

https://www.finalbuilder.com/Support...12846.aspx

Using Automize 4.0.0.209

Action type: http get

after action js:

if (Action.ResponseCode <= 400) {
ActionResult = true;
Continue = true;
}


Buuuuuuuuuuuuuut, the action fails when the web server returns http 302 (which is fine with me!)


Please advise!

I will get his looked at next week… we’ve been a bit snowed under with releasing Continua.

Say, do we have an ETA on this? We can’t make our scripts reliable if they can’t test the http results… (my internal number on this is 35561)

Hi Sam

Apologies for the delay, a lot going on here at the moment (continau ci release, about to move office), I just uploaded the build :

http://downloads.automise.com/downloads/automise/400/AT400_211.exe
http://downloads.automise.com/downloads/automise/400/ATCMD400_211.exe

Vincent,
Thanks!!!

Bad news… still a problem.

running automize 4.0.0.213
(app runs atmcmd.exe, which has this version stamp)

Doing http get on a url

url returns 302

automize considers it a failure:

error retrieving url : http/1.1 302 found

Here is my afteraction script:

if (Action.ResponseCode <= 400) {
ActionResult = true;
Continue = true;
}

What to do?

Hi Sam,

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.

Give me a heads up if this works for you.

Jason,

Thank you for the note!

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...)

I am fine with the after action scripting. 

How do I get this solved?

Thanks!


(dummy post to trigger subscription to topic)

Hi Sam,

I have found the issue and will get you a build A.S.A.P.

Hi Sam,

In the mean time you can use this release. It sets the response correctly and your scripts should work. I noted your currently using 4.0.0.213

http://downloads.automise.com/downloads/automise/400/AT400_211.exe

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)

Jason, thanks for the update! Standing by!

Hmmm, I have 211. It was initially provided to me in early May to solve this exact issue, but it did not deliver…

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.

Is that correct?

Jason,

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.

Thank you for your engagement!



Action type: http get after action js:

if (Action.ResponseCode <= 400) {
ActionResult = true;
Continue = true;
}

bump

Hi Sam

You can download an updated release of Automise here;

http://downloads.automise.com/downloads/automise/400/AT400_343.exe

Let us know how this goes.

Jason,
Sorry for the delayed response!
Build 343 does NOT resolve.
I just sent details in to the support email.

(This note is for the public consumption – please do not reply here to forum, as I do not receive email tickles of new posts…)

Thanks!