# TCL Error

**URL:** <https://community.f5.com/t/tcl-error/9113>\
**Category:** Technical Forums\
**Tags:** availability, performance, management, irules, devops, security, application-delivery\
**Created:** [October 27, 2014, 1:45am UTC](https://community.f5.com/t/tcl-error/9113 "2014-10-27T01:45:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Srijana\_137175](https://avatars.discourse-cdn.com/v4/letter/s/e480ec/32.png) [@Srijana\_137175](https://community.f5.com/u/Srijana_137175)\
**Post date:** [October 27, 2014, 1:45am UTC](https://community.f5.com/t/tcl-error/9113/1 "2014-10-27T01:45:34Z")

</div>

Why we getting below TCL error please.

TCL error: iR\_Nemo\_DC\_Failover\_Pcworld - Operation not supported. Multiple redirect/respond invocations not allowed (line 4) invoked from within “HTTP::respond 503 content [b64decode [class element -name 0 DG\_MAINTENANCE\_PCW\_DEFAULT\_080414\_HTML]] “Content-Type” “text/html””

Below IRULE for Maintenance Page:

when HTTP\_REQUEST { if {([class match [IP::remote\_addr] equals NEMO\_whitelist]) } { pool Pool\_RP\_Prod\_dsg } else { HTTP::respond 503 content [b64decode [class element -name 0 DG\_MAINTENANCE\_PCW\_DEFAULT\_080414\_HTML]] “Content-Type” “text/html” } }

---

<div class="post-metadata">

**Author:** ![kunjan](https://avatars.discourse-cdn.com/v4/letter/k/54ee81/32.png) [@kunjan](https://community.f5.com/u/kunjan)\
**Post date:** [October 27, 2014, 2:50am UTC](https://community.f5.com/t/tcl-error/9113/2 "2014-10-27T02:50:14Z")

</div>

This should be 2nd HTTP:respond you hit in the code during execution. May want to check you hit a HTTP::respond code before this.

As itself this code should work.

---

<div class="post-metadata">

**Author:** ![Hannes\_Rapp](https://avatars.discourse-cdn.com/v4/letter/h/779978/32.png) [@Hannes\_Rapp](https://community.f5.com/u/Hannes_Rapp)\
**Post date:** [October 27, 2014, 11:47am UTC](https://community.f5.com/t/tcl-error/9113/3 "2014-10-27T11:47:30Z")

</div>

Seems like as per your iRule codes, two redirect or respond statements for a single connection are matching. Use the

```tcl
event disable

```

command after first-match redirect (or respond) statement to get rid of this TCL error.

```tcl
iRule 1

when HTTP_REQUEST {
HTTP::redirect blabla
event disable

iRule 2

when HTTP_REQUEST {
This respond won't be processed as event disable was used. First HTTP::redirect statement will work
HTTP::respond 503 blabla

```
