You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
... give it whatever name and click "dry run". ("save" also fails for same reasons, see below)
Sample event:
{
"content": {
"some_value": "23"
}
}
Obviously the result should be 1 (23 divided by 23), yet it never is evaluated at all.
Problem is that LiquidInterpolatable#validate_interpolation tries to interpolate the template (probably to check for syntax errors in liquid template). Yet since there is no event data during validation it tries to divide by zero, which fails for obvious reasons. That way validation however fails, so the agent is neither saved nor is dry-run performed.
I'm not sure what a good resolution might look like, since template validation makes sense. Probably to just catch the error in the current vaildate_interpolation function and ignore it, like so:
This relates to #2021, yet wasn't really tracked down back then, hence once more with more details:
Event Formatting Agent options:
... give it whatever name and click "dry run". ("save" also fails for same reasons, see below)
Sample event:
Obviously the result should be 1 (23 divided by 23), yet it never is evaluated at all.
Problem is that
LiquidInterpolatable#validate_interpolation
tries to interpolate the template (probably to check for syntax errors in liquid template). Yet since there is no event data during validation it tries to divide by zero, which fails for obvious reasons. That way validation however fails, so the agent is neither saved nor is dry-run performed.I'm not sure what a good resolution might look like, since template validation makes sense. Probably to just catch the error in the current
vaildate_interpolation
function and ignore it, like so:The text was updated successfully, but these errors were encountered: