-
Notifications
You must be signed in to change notification settings - Fork 19
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
invalid value (nil) at index 285 in table for 'concat' #19
Comments
Hi @meisuj815 , I've tried to reproduce this error using your use case but it did not work on my computer. Would you mind also providing the following information:
$ curl https://blockchain.info/q/getreceivedbyaddress/123
$ echo $? |
Hi @xiaocang
I don't know the exactly exit code, since this error happens rate is 1/100, but I guess that is timeout error, both stdout and stderr had this problem. The output I guess sometime is empty content. This code also error: local shell = require "resty.shell"
local stdin = nil
local timeout = 10000 -- ms
local max_size = 40960 -- byte
local command = 'curl -U ""user:pass"" --proxy http://13.52.235.251:80 --url http://api.ipify.org'
for i = 1, 1000 do
local ok, stdout, stderr, reason, status =
shell.run(command, stdin, timeout, max_size)
if status ~= 0 then
ngx.say(status)
ngx.say(reason)
end
end response:
log:
|
@meisuj815 |
Hi @xiaocang thank again with your help Upadte: Then the problem will solve. |
Hi @xiaocang |
Hi @meisuj815 And I'll take the time to try to reproduce the problem with your minimize use case:
|
Hi @xiaocang but I did hit the bug in first code: #19 (comment) |
error:
code:
since that is a error output(ok == nil) now I just edit the stdout and stderr to nil in shell.lua;
The text was updated successfully, but these errors were encountered: