error: .../modules/lua-resty-dns-master/lib/resty/dns/resolver.lua:92: attempt to call local 'new_tab' (a table value)
hi, when I try to use this module it got me this error: nginx: [error] init_by_lua error: .../modules/lua-resty-dns-master/lib/resty/dns/resolver.lua:92: attempt to call local 'new_tab' (a table value) stack traceback: .../modules/lua-resty-dns-master/lib/resty/dns/resolver.lua:92: in main chunk [C]: in function 'require' init_by_lua:2: in main chunk
the configuration that I use in nginx.conf is : lua_package_path "/etc/nginx/modules/lua-resty-dns-master/lib/resty/dns/resolver.lua";
Is there something that I doing wrong? Thanks.
Update: is it need to use lua 5.2.3? because my current lua version is 5.1.4
Update: this issues is resolved by not using require "resty.dns.resolver" in init_by_lua_block. THanks
@ilham9649 It seems that you have a 3rd-party Lua module named table.new in your system's Lua module search paths. You should remove it from the search paths.