Applenice commented on issue #3917:
URL: https://github.com/apache/apisix/issues/3917#issuecomment-873176056


   I was trying to solve this issue and when testing I found the problem:
   
https://github.com/apache/apisix/blob/e35ef6d54469a312b209bf60b194eca50938ebbe/apisix/cli/ngx_tpl.lua#L144
   
https://github.com/apache/apisix/blob/e35ef6d54469a312b209bf60b194eca50938ebbe/apisix/cli/ngx_tpl.lua#L145
   
   It can be modified like this:
   ```
   lua_shared_dict internal_status      {* http.lua_shared_dict.internal_status 
*};
   ```
   But it seems to be because this format of `plugin-limit-req` does not 
conform to the lexical conventions of Lua names. An error is reported:
   ```
   /usr/local/openresty/luajit/bin/luajit: [string "context=... or {}..."]:289: 
attempt to perform arithmetic on field 'plugin' (a nil value)
   ```
   Can I change the lua_shared_dict variable that uses `-` to `_`? This way the 
relevant code needs to be modified.


-- 
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]


Reply via email to