Forum Discussion
Why do I get a Parse error for the iRule
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
- cjunior
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
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 :/
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com