You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/01/08 12:01:37 UTC
[GitHub] [apisix] dickens7 edited a comment on issue #2006: bug(cors): attempt to concatenate field 'conf_id' (a nil value)
dickens7 edited a comment on issue #2006:
URL: https://github.com/apache/apisix/issues/2006#issuecomment-756699567
What is the meaning of this code
> https://github.com/apache/apisix/blob/master/apisix/init.lua#L365-L368
```lua
365 api_ctx.plugins = nil
366 api_ctx.conf_type = nil
367 api_ctx.conf_version = nil
368 api_ctx.conf_id = nil
```
- apisix 2.1 global_rules enable cors plugin, upstream response 404 will cause this problem
```
2021/01/08 10:58:50 [error] 79#79: *440247 failed to run header_filter_by_lua*: /usr/local/apisix/apisix/core/lrucache.lua:162: invalid value (nil) at index 1 in table for 'concat'
stack traceback:
[C]: in function 'concat'
/usr/local/apisix/apisix/core/lrucache.lua:162: in function 'plugin_ctx'
/usr/local/apisix/apisix/plugins/cors.lua:168: in function 'phase_func'
/usr/local/apisix/apisix/init.lua:160: in function 'run_plugin'
/usr/local/apisix/apisix/init.lua:615: in function 'common_phase'
/usr/local/apisix/apisix/init.lua:652: in function 'http_header_filter_phase'
```
----------------------------------------------------------------
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:
users@infra.apache.org