Forum Discussion
Gary_T_31565
Nimbostratus
Jun 19, 2007http_process_state_collect_data - Invalid action EV_FLUSH_PIPELINE during ST_HTTP_STOP_COLLECTING
Hi,
new here. I had a problem with POSTing in my 404 retry script. Basically a asp logon page frooze on submit if any 5* or 4* errors were found on first server. Someone mentioned on retries you need to add the body back on request but did not explain how. So below is cobbled together from examples and it now works!
But I get the error listed in subject line. Any way of resolving this.
Also feel free to say whether I am barking up the wrong tree with my approach.
Thanks
Gary
when CLIENT_ACCEPTED {
set ui_retries 0
}
when HTTP_REQUEST {
set request [HTTP::request]
log "Start test 12 $request"
POST loses body on retry so reattach
if {[HTTP::request] starts_with "POST"}{
set content_length 0
Find lenght of body
if {[HTTP::header exists "Content-Length"]} {
set content_length [HTTP::header "Content-Length"]
}
If the header is missing, use a sufficiently large number
if {$content_length == 0} {
set content_length 4294967295
}
Collect body
HTTP::collect $content_length
}
}
Collects body and appends to request
when HTTP_REQUEST_DATA {
set body [HTTP::payload]
append request $body
log "added payload"
HTTP::release
}
when HTTP_RESPONSE {
if {[HTTP::status] starts_with "5" or [HTTP::status] starts_with "4"} {
set errorno [HTTP::status]
if {$ui_retries < [active_members ui_all_pool]-1} {
incr ui_retries
log "http error $errorno, retrying $ui_retries $request"
HTTP::retry $request
} else {
set errorno [HTTP::status]
log "Max retries exceeded for http error $errorno, Redirecting to OoS page $request"
HTTP::redirect "http://www.xxx.co.uk/warning/LIVEISUNAVAILABLE.htm" }
}
}1 Reply
- Gary_T_31565
Nimbostratus
heres the log
Rule ui_all_pool_irule HTTP_REQUEST: Start test 12 GET /AgentOrdering/View/logon.aspx HTTP/1.1 Accept: */* Accept-Language: en-us UA-CPU: x86 Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 compatible MSIE 7.0 Windows NT 5.1 .NET CLR 1.1.4322 .NET CLR 2.0.50727 Host: www.live-org-lab.com Connection: Keep-Alive Cookie: appNameAuth=D3D62B4C0B45C4C17C92D62A781D0783AE0E2389EB600E3A1B6B0E4A0FAD2B4421CC568BF32B3BBFEBB2E5643FC4578C78C7B93E253FCF9319DEBA5B37C9E15CCBFC07900720735DB7D929BDF41842D649FCFDB513EF2EA2
Rule ui_all_pool_irule HTTP_RESPONSE: http error 404, retrying 1 GET /AgentOrdering/View/logon.aspx HTTP/1.1 Accept: */* Accept-Language: en-us UA-CPU: x86 Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 compatible MSIE 7.0 Windows NT 5.1 .NET CLR 1.1.4322 .NET CLR 2.0.50727 Host: www.live-org-lab.com Connection: Keep-Alive Cookie: appNameAuth=D3D62B4C0B45C4C17C92D62A781D0783AE0E2389EB600E3A1B6B0E4A0FAD2B4421CC568BF32B3BBFEBB2E5643FC4578C78C7B93E253FCF9319DEBA5B37C9E15CCBFC07900720735DB7D929BDF41842D649FCFDB513EF2EA2
Rule ui_all_pool_irule HTTP_REQUEST: Start test 12 GET /AgentOrdering/View/logon.aspx HTTP/1.1 Accept: */* Accept-Language: en-us UA-CPU: x86 Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 compatible MSIE 7.0 Windows NT 5.1 .NET CLR 1.1.4322 .NET CLR 2.0.50727 Host: www.live-org-lab.com Connection: Keep-Alive Cookie: appNameAuth=D3D62B4C0B45C4C17C92D62A781D0783AE0E2389EB600E3A1B6B0E4A0FAD2B4421CC568BF32B3BBFEBB2E5643FC4578C78C7B93E253FCF9319DEBA5B37C9E15CCBFC07900720735DB7D929BDF41842D649FCFDB513EF2EA2
Rule ui_all_pool_irule HTTP_REQUEST: Start test 12 GET /css/Generic.css HTTP/1.1 Accept: */* Referer: http://www.live-org-lab.com/AgentOrdering/View/logon.aspx Accept-Language: en-us UA-CPU: x86 Accept-Encoding: gzip, deflate If-Modified-Since: Thu, 14 Jun 2007 15:11:03 GMT If-None-Match: 7c9c9f3996aec71:397 User-Agent: Mozilla/4.0 compatible MSIE 7.0 Windows NT 5.1 .NET CLR 1.1.4322 .NET CLR 2.0.50727 Host: www.live-org-lab.com Connection: Keep-Alive
Rule ui_all_pool_irule HTTP_REQUEST: Start test 12 GET /js/dom.js HTTP/1.1 Accept: */* Referer: http://www.live-org-lab.com/AgentOrdering/View/logon.aspx Accept-Language: en-us UA-CPU: x86 Accept-Encoding: gzip, deflate If-Modified-Since: Thu, 19 Apr 2007 12:49:23 GMT If-None-Match: e1a6dc278182c71:397 User-Agent: Mozilla/4.0 compatible MSIE 7.0 Windows NT 5.1 .NET CLR 1.1.4322 .NET CLR 2.0.50727 Host: www.live-org-lab.com Connection: Keep-Alive
repeated 2 times
Rule ui_all_pool_irule HTTP_REQUEST: Start test 12 POST /AgentOrdering/View/logon.aspx HTTP/1.1 Accept: */* Referer: http://www.live-org-lab.com/AgentOrdering/View/logon.aspx Accept-Language: en-us Content-Type: application/x-www-form-urlencoded UA-CPU: x86 Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 compatible MSIE 7.0 Windows NT 5.1 .NET CLR 1.1.4322 .NET CLR 2.0.50727 Host: www.live-org-lab.com Content-Length: 130 Connection: Keep-Alive Cache-Control: no-cache
Rule ui_all_pool_irule HTTP_REQUEST_DATA: added payload
Rule ui_all_pool_irule HTTP_RESPONSE: http error 404, retrying 1 POST /AgentOrdering/View/logon.aspx HTTP/1.1 Accept: */* Referer: http://www.live-org-lab.com/AgentOrdering/View/logon.aspx Accept-Language: en-us Content-Type: application/x-www-form-urlencoded UA-CPU: x86 Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 compatible MSIE 7.0 Windows NT 5.1 .NET CLR 1.1.4322 .NET CLR 2.0.50727 Host: www.live-org-lab.com Content-Length: 130 Connection: Keep-Alive Cache-Control: no-cache __VIEWSTATE=sMqO311ts1Uf2W6KdnpTuB3RMIbjUcZeAYkpHmLiEz9Oz4oZ2qsF5A3D3DtxtUsername=0984garyttxtPassword=xxxxbtnLogin=Login
Rule ui_all_pool_irule HTTP_REQUEST: Start test 12 POST /AgentOrdering/View/logon.aspx HTTP/1.1 Accept: */* Referer: http://www.live-org-lab.com/AgentOrdering/View/logon.aspx Accept-Language: en-us Content-Type: application/x-www-form-urlencoded UA-CPU: x86 Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 compatible MSIE 7.0 Windows NT 5.1 .NET CLR 1.1.4322 .NET CLR 2.0.50727 Host: www.live-org-lab.com Content-Length: 130 Connection: Keep-Alive Cache-Control: no-cache
http_process_state_collect_data - Invalid action EV_FLUSH_PIPELINE during ST_HTTP_STOP_COLLECTING
Rule ui_all_pool_irule HTTP_REQUEST: Start test 12 POST /AgentOrdering/View/logon.aspx HTTP/1.1 Accept: */* Referer: http://www.live-org-lab.com/AgentOrdering/View/logon.aspx Accept-Language: en-us Content-Type: application/x-www-form-urlencoded UA-CPU: x86 Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 compatible MSIE 7.0 Windows NT 5.1 .NET CLR 1.1.4322 .NET CLR 2.0.50727 Host: www.live-org-lab.com Content-Length: 130 Connection: Keep-Alive Cache-Control: no-cache
repeated 21 times
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects