Skip to content

txn_box plugin error in example #12335

Description

@anonymous-bugs

Does this txn_box example work?

txn_box:

  • when: upstream-rsp
    do:
    • with: [ upstream-rsp-status , proxy-req-path ]
      select:
      • as-tuple:
        • eq: 404
        • match: "example"
          do:
        • debug: "Resetting upstream response"
        • upstream-rsp-status: [ 200 , "OK" ]
        • upstream-rsp-field: "max-age=3600"

Error:
While parsing as-tuple comparison at Line 5.
While loading "with" directive at Line 3 in "select" at Line 5.
While parsing directive at Line 3.
While loading directives at Line 3.

When i also use

  • with: upstream-rsp-status
    select:
    • eq: 200

It gives error.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions