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

**URL:** <https://www.finalbuilder.com/forums/t/automize-4-atcmd-appears-not-able-to-see-the-http-result-code/4527>\
**Category:** Discussion\
**Created:** [May 4, 2013, 1:17am UTC](https://www.finalbuilder.com/forums/t/automize-4-atcmd-appears-not-able-to-see-the-http-result-code/4527 "2013-05-04T01:17:08Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![rafael](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/r/4da419/32.png) [@rafael](https://www.finalbuilder.com/forums/u/rafael)\
**Post date:** [May 4, 2013, 1:17am UTC](https://www.finalbuilder.com/forums/t/automize-4-atcmd-appears-not-able-to-see-the-http-result-code/4527/1 "2013-05-04T01:17:08Z")

</div>

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

[https://www.finalbuilder.com/Support...12846.aspx](https://www.finalbuilder.com/forums/t/http-get-action-what-is-script-to-test-http-result-code/2129)

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!

---

<div class="post-metadata">

**Author:** ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)\
**Post date:** [May 4, 2013, 2:38am UTC](https://www.finalbuilder.com/forums/t/automize-4-atcmd-appears-not-able-to-see-the-http-result-code/4527/2 "2013-05-04T02:38:41Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![rafael](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/r/4da419/32.png) [@rafael](https://www.finalbuilder.com/forums/u/rafael)\
**Post date:** [May 8, 2013, 7:31am UTC](https://www.finalbuilder.com/forums/t/automize-4-atcmd-appears-not-able-to-see-the-http-result-code/4527/3 "2013-05-08T07:31:47Z")

</div>

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)

---

<div class="post-metadata">

**Author:** ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)\
**Post date:** [May 9, 2013, 12:23pm UTC](https://www.finalbuilder.com/forums/t/automize-4-atcmd-appears-not-able-to-see-the-http-result-code/4527/4 "2013-05-09T12:23:22Z")

</div>

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/AT400_211.exe)   
 [http://downloads.automise.com/downloads/automise/400/ATCMD400\_211.exe](http://downloads.automise.com/downloads/automise/400/ATCMD400_211.exe)

---

<div class="post-metadata">

**Author:** ![rafael](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/r/4da419/32.png) [@rafael](https://www.finalbuilder.com/forums/u/rafael)\
**Post date:** [May 10, 2013, 1:27am UTC](https://www.finalbuilder.com/forums/t/automize-4-atcmd-appears-not-able-to-see-the-http-result-code/4527/5 "2013-05-10T01:27:00Z")

</div>

Vincent,   
 Thanks!!!

---

<div class="post-metadata">

**Author:** ![rafael](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/r/4da419/32.png) [@rafael](https://www.finalbuilder.com/forums/u/rafael)\
**Post date:** [May 30, 2013, 1:00am UTC](https://www.finalbuilder.com/forums/t/automize-4-atcmd-appears-not-able-to-see-the-http-result-code/4527/6 "2013-05-30T01:00:09Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![nevar](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/c4cdca/32.png) [@nevar](https://www.finalbuilder.com/forums/u/nevar)\
**Post date:** [May 30, 2013, 9:14am UTC](https://www.finalbuilder.com/forums/t/automize-4-atcmd-appears-not-able-to-see-the-http-result-code/4527/7 "2013-05-30T09:14:20Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![rafael](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/r/4da419/32.png) [@rafael](https://www.finalbuilder.com/forums/u/rafael)\
**Post date:** [June 12, 2013, 2:04am UTC](https://www.finalbuilder.com/forums/t/automize-4-atcmd-appears-not-able-to-see-the-http-result-code/4527/8 "2013-06-12T02:04:09Z")

</div>

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.&nbsp;

How do I get this solved?

Thanks!

---

<div class="post-metadata">

**Author:** ![rafael](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/r/4da419/32.png) [@rafael](https://www.finalbuilder.com/forums/u/rafael)\
**Post date:** [June 12, 2013, 2:05am UTC](https://www.finalbuilder.com/forums/t/automize-4-atcmd-appears-not-able-to-see-the-http-result-code/4527/9 "2013-06-12T02:05:01Z")

</div>

(dummy post to trigger subscription to topic)

---

<div class="post-metadata">

**Author:** ![nevar](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/c4cdca/32.png) [@nevar](https://www.finalbuilder.com/forums/u/nevar)\
**Post date:** [June 12, 2013, 3:42am UTC](https://www.finalbuilder.com/forums/t/automize-4-atcmd-appears-not-able-to-see-the-http-result-code/4527/10 "2013-06-12T03:42:35Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![nevar](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/c4cdca/32.png) [@nevar](https://www.finalbuilder.com/forums/u/nevar)\
**Post date:** [June 12, 2013, 3:56am UTC](https://www.finalbuilder.com/forums/t/automize-4-atcmd-appears-not-able-to-see-the-http-result-code/4527/11 "2013-06-12T03:56:23Z")

</div>

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](http://downloads.automise.com/downloads/automise/400/AT400_211.exe)

---

<div class="post-metadata">

**Author:** ![rafael](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/r/4da419/32.png) [@rafael](https://www.finalbuilder.com/forums/u/rafael)\
**Post date:** [June 13, 2013, 10:14am UTC](https://www.finalbuilder.com/forums/t/automize-4-atcmd-appears-not-able-to-see-the-http-result-code/4527/12 "2013-06-13T10:14:04Z")

</div>

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)

---

<div class="post-metadata">

**Author:** ![rafael](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/r/4da419/32.png) [@rafael](https://www.finalbuilder.com/forums/u/rafael)\
**Post date:** [June 13, 2013, 10:14am UTC](https://www.finalbuilder.com/forums/t/automize-4-atcmd-appears-not-able-to-see-the-http-result-code/4527/13 "2013-06-13T10:14:43Z")

</div>

Jason, thanks for the update! Standing by!

---

<div class="post-metadata">

**Author:** ![rafael](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/r/4da419/32.png) [@rafael](https://www.finalbuilder.com/forums/u/rafael)\
**Post date:** [June 13, 2013, 10:16am UTC](https://www.finalbuilder.com/forums/t/automize-4-atcmd-appears-not-able-to-see-the-http-result-code/4527/14 "2013-06-13T10:16:11Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![nevar](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/c4cdca/32.png) [@nevar](https://www.finalbuilder.com/forums/u/nevar)\
**Post date:** [June 14, 2013, 1:06am UTC](https://www.finalbuilder.com/forums/t/automize-4-atcmd-appears-not-able-to-see-the-http-result-code/4527/15 "2013-06-14T01:06:28Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![rafael](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/r/4da419/32.png) [@rafael](https://www.finalbuilder.com/forums/u/rafael)\
**Post date:** [June 14, 2013, 11:49am UTC](https://www.finalbuilder.com/forums/t/automize-4-atcmd-appears-not-able-to-see-the-http-result-code/4527/16 "2013-06-14T11:49:17Z")

</div>

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;   
 }

---

<div class="post-metadata">

**Author:** ![rafael](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/r/4da419/32.png) [@rafael](https://www.finalbuilder.com/forums/u/rafael)\
**Post date:** [June 19, 2013, 12:55pm UTC](https://www.finalbuilder.com/forums/t/automize-4-atcmd-appears-not-able-to-see-the-http-result-code/4527/17 "2013-06-19T12:55:32Z")

</div>

bump

---

<div class="post-metadata">

**Author:** ![nevar](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/c4cdca/32.png) [@nevar](https://www.finalbuilder.com/forums/u/nevar)\
**Post date:** [June 19, 2013, 5:42am UTC](https://www.finalbuilder.com/forums/t/automize-4-atcmd-appears-not-able-to-see-the-http-result-code/4527/18 "2013-06-19T05:42:33Z")

</div>

Hi Sam   
  
 You can download an updated release of Automise here;   
  
 [http://downloads.automise.com/downloads/automise/400/AT400\_343.exe](http://downloads.automise.com/downloads/automise/400/AT400_343.exe)   
  
 Let us know how this goes.

---

<div class="post-metadata">

**Author:** ![rafael](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/r/4da419/32.png) [@rafael](https://www.finalbuilder.com/forums/u/rafael)\
**Post date:** [July 30, 2013, 7:31am UTC](https://www.finalbuilder.com/forums/t/automize-4-atcmd-appears-not-able-to-see-the-http-result-code/4527/19 "2013-07-30T07:31:50Z")

</div>

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!
