Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Answers

Script throwing error

I am getting the following error in the logs every few seconds

TCL error: /Common/sfoitshortcuts - Operation not supported. Multiple redirect/respond invocations not allowed (line 3) invoked from within "HTTP::respond 301 location "https://www1.ucdenver.edu[class lookup $path sfoitshortcuts_dg]""

the script that is referenced is; hen HTTP_REQUEST { set path [string tolower [HTTP::path]] if { [class match $path equals sfoitshortcuts_dg] } { HTTP::respond 301 location "https://www1.thesite.edu[class lookup $path sfoitshortcuts_dg]" log local0."[$path]" break } } Anyone have any idea of what is wrong with the script?

Steven Albrecht University of Colorado Denver

0
Rate this Question
Comments on this Question
Comment made 01-Aug-2017 by Stephane Viau 122

Try adding return after the redirect if this is your only iRule. If you have multiple iRules then it can get a bit tricky but you could try using disable event + closing the TCP connection.

https://devcentral.f5.com/wiki/iRules.return.ashx

0

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

The logic flow of all iRules associated with the virtual server must result in the execution of at most one HTTP::redirect or HTTP::respond command. Remember that processing will continue after one of these operations is performed, so it's likely that a previous iRule has already issued a redirect/respond command.

0