You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "anonymous-bugs (via GitHub)" <gi...@apache.org> on 2025/07/08 11:02:11 UTC
[I] txn_box plugin error in example [trafficserver]
anonymous-bugs opened a new issue, #12335:
URL: https://github.com/apache/trafficserver/issues/12335
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<Cache-Control>: "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.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] txn_box plugin error in example [trafficserver]
Posted by "anonymous-bugs (via GitHub)" <gi...@apache.org>.
anonymous-bugs commented on issue #12335:
URL: https://github.com/apache/trafficserver/issues/12335#issuecomment-3048466074
@cmcfarlen @brbzull0 can you look into this?. Im using trafficserver 10.2.0
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] txn_box plugin error in example [trafficserver]
Posted by "mlibbey (via GitHub)" <gi...@apache.org>.
mlibbey commented on issue #12335:
URL: https://github.com/apache/trafficserver/issues/12335#issuecomment-3049949787
I'm not really familiar with txn_box syntax, but think in header_rewrite that would be like
```
cond %{READ_RESPONSE_HDR_HOOK} [AND]
cond %{STATUS} =404
set-header @newstatus "Resetting upstream response"
set-status 200
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] txn_box plugin error in example [trafficserver]
Posted by "bneradt (via GitHub)" <gi...@apache.org>.
bneradt commented on issue #12335:
URL: https://github.com/apache/trafficserver/issues/12335#issuecomment-5375622965
I added a test that exercises the example txn_box code. It seems to work in the test. See #13581 . I'm going to close this issue. Please feel free to re-open if I'm missing something and there is something else to investigate.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] txn_box plugin error in example [trafficserver]
Posted by "anonymous-bugs (via GitHub)" <gi...@apache.org>.
anonymous-bugs commented on issue #12335:
URL: https://github.com/apache/trafficserver/issues/12335#issuecomment-3050946794
@mlibbey Thanks for your response. I'm looking to build more complex examples, so was testing provided examples since my logic kept running into error. I dont know if etags can be compared during header_rewrite
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] txn_box plugin error in example [trafficserver]
Posted by "bneradt (via GitHub)" <gi...@apache.org>.
bneradt closed issue #12335: txn_box plugin error in example
URL: https://github.com/apache/trafficserver/issues/12335
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org