Arjen10 opened a new issue, #13821: URL: https://github.com/apache/apisix/issues/13821
### Current Behavior Does not match the description in the [jwe-decrypt](https://apisix.apache.org/docs/apisix/plugins/jwe-decrypt/ ) plugin document, strict is false do not throw an error when JWE token is not found, but now there will be an error. ### Expected Behavior _No response_ ### Error Logs 172.18.0.21 - - [13/Aug/2026:14:24:26 +0000] 172.18.0.21:9180 "PUT /apisix/admin/routes/test HTTP/1.1" 200 330 0.019 "-" "curl/7.61.1" - - - "http://172.18.0.21:9180" "494254099c58f51199b5065b4906a47e" 2026/08/13 14:25:01 [error] 49#49: *1286631 lua entry thread aborted: runtime error: /usr/local/apisix/apisix/plugins/jwe-decrypt.lua:116: attempt to index local 'jwe_token' (a nil value) stack traceback: coroutine 0: /usr/local/apisix/apisix/plugins/jwe-decrypt.lua: in function 'load_jwe_token' /usr/local/apisix/apisix/plugins/jwe-decrypt.lua:183: in function 'phase_func' /usr/local/apisix/apisix/plugin.lua:1321: in function 'run_plugin' /usr/local/apisix/apisix/init.lua:832: in function 'http_access_phase' access_by_lua(nginx.conf:374):2: in main chunk, client: 172.18.0.21, server: _, request: "POST /bizProject/test HTTP/1.1", host: "172.18.0.21:9080", request_id: "25d527f54f08755791c8b73c5c91a74f" 172.18.0.21 - - [13/Aug/2026:14:25:01 +0000] 172.18.0.21:9080 "POST /bizProject/test HTTP/1.1" 500 249 0.005 "-" "curl/7.61.1" - - - "http://172.18.0.21:9080" "25d527f54f08755791c8b73c5c91a74f" ### Steps to Reproduce 1、creat route ```curl curl --location --request PUT 'http://172.18.0.21:9180/apisix/admin/routes/test' \ --header 'Content-Type: application/json' \ --header 'X-API-KEY: xxx' \ --data '{ "uri": "/bizProject/test", "name": "bizProject-test", "plugins": { "jwe-decrypt": { "header": "Authorization", "forward_header": "Authorization", "strict": false } }, "upstream": { "type": "roundrobin", "nodes": { "172.18.0.222:8080": 1 } } }' 2、send request ```curl curl --location 'http://172.18.0.21:9080/bizProject/test' \ --header 'Content-Type: application/json' \ --data '{ "items": [ "a", "drop-me", "c" ] }' ``` ``` ### Environment - APISIX version (run `apisix version`): 3.17.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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
