cancel
Showing results for 
Search instead for 
Did you mean: 

Why do I get a Parse error for the iRule

Bartek
Cirrus
Cirrus

The syntax is accepted by the F5:

when HTTP_REQUEST {   if { [string tolower [HTTP::uri]] contains "liaison" } {      IP::idle_timeout 600      log local0. "Timeout set to [IP::idle_timeout]"   } }

but the log gives me this:

(...)increase_idle_timeout] error: /common/increase_idle_timeout:2: error: [parse error: PARSE missingBracket 28 {missing close-bracket}][{ [string tolower [HTTP::uri] contains "liaison" }]

 

 

2 REPLIES 2

cjunior
Nacreous
Nacreous

Hello, this error message does not appear to be from this code that looks correct.

 

Did you write in some time like this way (as appear in error message) ?

if { [string tolower [HTTP::uri] contains "liaison" }] {

If I do this wrong code, I get this similar error:

 

01070151:3: Rule [/Common/irule_devcentral] error: /Common/irule_devcentral:2: error: [parse error: PARSE missingBracket 27 {missing close-bracket}][{ [string tolower [HTTP::uri] contains "liaison" }]

 

Regards

Bartek
Cirrus
Cirrus

No, the code is pasted directly from the box. Also - just to clarify, the iRule compiles and saves - the error is visible in the /var/log/ltm

Also, the timeout is not increased 😕