dickens7 removed a comment on issue #2006: URL: https://github.com/apache/apisix/issues/2006#issuecomment-759957902
upgrade to `2.2` the problem remains unresolved Steps to reproduce 1. add global_rules ``` curl -X PUT \ http://127.0.0.1:9080/apisix/admin/global_rules/1 \ -H 'Content-Type: application/json' \ -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' \ -d '{"plugins": {"cors": {}}}' ``` 2. add my service route ``` $ curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -i -d ' { "uri": "/*", "upstream": { "type": "roundrobin", "nodes": { "127.0.0.1:8999": 1 } } }' ``` 3. my service open status > curl http://127.0.0.1:9080/ - response ``` Hello world ``` 4. my service close status > curl http://127.0.0.1:9080/ - response ``` <html> <head><title>502 Bad Gateway</title></head> <body> <center><h1>502 Bad Gateway</h1></center> <hr><center>openresty</center> </body> </html> ``` - error log ``` 2021/01/14 06:27:24 [error] 36#36: *53399 failed to run header_filter_by_lua*: /usr/local/apisix/apisix/core/lrucache.lua:159: invalid value (nil) at index 1 in table for 'concat' stack traceback: [C]: in function 'concat' /usr/local/apisix/apisix/core/lrucache.lua:159: in function 'plugin_ctx' /usr/local/apisix/apisix/plugins/cors.lua:168: in function 'phase_func' /usr/local/apisix/apisix/init.lua:164: in function 'run_plugin' /usr/local/apisix/apisix/init.lua:625: in function 'common_phase' /usr/local/apisix/apisix/init.lua:662: in function 'http_header_filter_phase' header_filter_by_lua:2: in main chunk, client: 10.42.1.1, server: , request: "GET / HTTP/1.1", host: "127.0.0.1:9080" ``` ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org