You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apisix is run, Add the limit-count plugin to the config.yml configuration
Configure limit-count to take effect on the specified route through apisix dashboard
Request and response an 500 error
response context
<html><head><title>500 Internal Server Error</title></head><body><center><h1>500 Internal Server Error</h1></center><hr><center>openresty</center><p><em>Powered by <ahref="https://apisix.apache.org/">APISIX</a>.</em></p></body></html>
apisix error.log
2024/07/01 18:08:08 [error] 2900479#2900479: *1548899123 lua entry thread aborted: runtime error: .../apisix/apisix/plugins/limit-count/limit-count-local.lua:67: attempt to index field 'limit_count' (a nil value)
stack traceback:
coroutine 0:
.../apisix/apisix/plugins/limit-count/limit-count-local.lua: infunction'incoming'
/usr/local/apisix/apisix/plugins/limit-count/init.lua:302: infunction'phase_func'
/usr/local/apisix/apisix/plugin.lua:1148: infunction'run_plugin'
/usr/local/apisix/apisix/init.lua:725: infunction'http_access_phase'
access_by_lua(nginx.conf:356):2: in main chunk, client: 100.123.22.18, server: _, request: "GET /device-manager/v1/qms/device-active/list?startTimestamp=1461686400000&endTimestamp=1461772799999&domain=cn&pageNumber=1&pageSize=100&productKey=96d90227fd8 HTTP/1.1", host: "www.example.com"
Description
The execution steps are as follows:
response context
apisix error.log
Environment
apisix version
):[root@ali-01 conf]# rpm -qa|grep apisix apache-apisix-repo-1.0-1.noarch apisix-runtime-1.0.1-0.el7.x86_64 apisix-dashboard-local-3.0.1-0.el7.x86_64 apisix-3.7.0-0.el7.x86_64
uname -a
):Linux ali-01 3.10.0-1160.102.1.el7.x86_64 #1 SMP Tue Oct 17 15:42:21 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
openresty -V
ornginx -V
):curl http://127.0.0.1:9090/v1/server_info
):luarocks --version
):[root@ali-01 plugins]# md5sum limit-count.lua limit-count/* 15cb4555fdd1c02155b55b1171ffc669 limit-count.lua 43718af7c1138ad3d02c0eae50f5b907 limit-count/init.lua f52a2b62833108e6020545796ceed3ae limit-count/limit-count-local.lua df6cb9bb121731f6dacca75a66f51cdc limit-count/limit-count-redis-cluster.lua e786381dd7f363536def279d5f87870e limit-count/limit-count-redis.lua
The text was updated successfully, but these errors were encountered: