-
Notifications
You must be signed in to change notification settings - Fork 107
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
DNS ERROR #70
Comments
Is it possible that my domain name is too lengthy? |
2024/04/15 06:25:19 [error] 941#0: *23624 [lua] job.lua:286: execute(): [timer-ng] failed to run timer unix_timestamp=1713162319690.000000;counter=531:meta=@/usr/local/share/lua/5.1/kong/resty/dns/client.lua:807:asyncQuery(): /usr/local/openresty/lualib/resty/dns/resolver.lua:384: bad argument #1 to 'lshift' (number expected, got nil) |
hi @woshitianbz could you show the dns response to help developers to debug if there is no sensible information |
Due to sensitive information, I've masked part of the content. Here's the translation:
|
After a lot of efforts, I cannot reproduce the issue. You may need to provide a precise method to reproduce this problem. Based on the information provided, I can only guess the steps to reproduce, which makes it difficult to accurately replicate the issue. The developers need a simple test case, which may include a client Lua script and server DNS output or configuration for a DNS server, along with clear instructions. With this script and instructions, we can effectively reproduce the problem. And if you can consistently reproduce this problem, you can also debug it step by step. I ran some tests with Coredns and lua-resty-dns library according to your reply. Finnally, my test client got the right answers and did not report error. open it to see the details 👈
|
ERROR: /usr/local/openresty/lualib/resty/dns/resolver.lua:384: bad argument #1 to 'lshift' (number expected, got nil)
stack traceback:
/usr/local/openresty/lualib/resty/dns/resolver.lua:384: in function 'parse_section'
/usr/local/openresty/lualib/resty/dns/resolver.lua:745: in function 'parse_response'
/usr/local/openresty/lualib/resty/dns/resolver.lua:909: in function 'query'
test.lua:19: in function 'file_gen'
init_worker_by_lua:45: in function <init_worker_by_lua:43>
[C]: in function 'xpcall'
init_worker_by_lua:52: in function <init_worker_by_lua:50>
It seems to be an issue with lua-resty-dns. Do you have any suggestions for the next steps?
The text was updated successfully, but these errors were encountered: