cancel
Showing results for 
Search instead for 
Did you mean: 

TCL error Can't call after responding - ERR_NOT_SUPPORTED invoked from within "HTTP::host"

skeenster
Nimbostratus
Nimbostratus

Hi

 

Just upgraded to 14.1.2.6 and had some iRules broken in the process. I am seeing error below but struggling to resolve.

TCL error Can't call after responding - ERR_NOT_SUPPORTED invoked from within "HTTP::host"

 

Guess we are affected by this but none of the workarounds seem to resolve.

https://support.f5.com/csp/article/K23237429

 

Here is the irule that worked before upgrade:

 

ltm rule /Common/apples_pears_oranges {

  when HTTP_REQUEST {

 if { ([HTTP::host] eq "wwwapple.removed.com") && ([string tolower [HTTP::uri]] starts_with "/pears") } {

  HTTP::respond 307 Location "https://oranges.com[HTTP::uri]"

 }

}

}

 

Any help would be gratefully appreciated. We have multiple irule applied and even policy doesnt fix.

 

Thanks

skeenster

2 REPLIES 2

Hi skeenter,

 

Add this line all affected iRules.

if { [HTTP::has_responded] } { return }

 

when HTTP_REQUEST { if { [HTTP::has_responded] } { return } elseif { [HTTP::host] equals "wwwapple.removed.com" && [string tolower [HTTP::uri]] starts_with "/pears" } { HTTP::respond 307 Location "https://oranges.com[HTTP::uri]" return } }

 

skeenster
Nimbostratus
Nimbostratus

Thanks for the reply this actually did resolved our issue once it was applied to all the required iRules on the virtual server.

 

Is this fix also required for HTTP::redirect as these iRule appear to be working, but not sure if we need to update?