-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
attempt to call method 'expire' (a nil value) #33
Comments
@gzliudan Seems like you call the API in a wrong way. You passed nil values to |
I've got the same problem. This is my error log line:
What I've noticed was that once I restart openresty, the first 3 or 4 requests fail with this error, and then it just starts working fine. This is the situation everytime I restart openresty. Here is how my function looks like, the one that implements the method that is failing:
|
Maybe you missed the lua block
|
Thanks @hungdq11, this sorted the issue! 🥇 |
I've run into the same/similar issue:
I'm going to try the solution proposed by @hungdq11 and report back! Thanks. |
I can confirm the fix worked. Thanks @hungdq11 for the tip. |
2018/04/08 00:17:58 [error] 1176#1176: *9 lua entry thread aborted: runtime error: /usr/local/openresty/lualib/resty/limit/count.lua:53: attempt to call method 'expire' (a nil value)
stack traceback:
coroutine 0:
/usr/local/openresty/lualib/resty/limit/count.lua: in function 'incoming'
/usr/local/openresty/lualib/resty/limit/traffic.lua:26: in function 'combine'
The text was updated successfully, but these errors were encountered: