28-Jan-2021 15:01
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
28-Jan-2021
15:40
- last edited on
04-Jun-2023
21:05
by
JimmyPackets
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
}
}
28-Jan-2021 15:55
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?