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
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
The text was updated successfully, but these errors were encountered:
@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.
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
The text was updated successfully, but these errors were encountered: