bad argument #1 to 'concat' (table expected, got nil)
zhezi7 opened this issue · comments
maxminddb.lua:323: bad argument #1 to 'concat' (table expected, got nil)
stack traceback:
coroutine 0:
[C]: in function 'concat'
/Users/suriko/apps/openresty/lualib/resty/maxminddb.lua:323: in function 'lookup'
share your code plz.
lua-resty-maxminddb/lib/resty/maxminddb.lua
Lines 317 to 323 in b01e434
like https://github.com/anjia0532/lua-resty-maxminddb#synopsis.
paste your invoke code
- install all of the prerequisites https://github.com/anjia0532/lua-resty-maxminddb#prerequisites
- maxminddb's version
- invoke code
I find what I changed, when it loaded, it shows an error about maxminddb,
maxminddb.lua:151: dlopen(libmaxminddb.so, 5): image not found
So I changed from
local maxm = ffi.load('libmaxminddb.so') to
local maxm = ffi.load('libmaxminddb.dylib')
Maybe that's the reason.
I use Mac, do you know why it shows the error:
maxminddb.lua:151: dlopen(libmaxminddb.so, 5): image not found