Open tangke777 opened 1 year ago
int ngx_http_lua_ffi_var_get(ngx_http_request_t r, u_char name_data, size_t name_len, u_char *lowcase_buf, int capture_id, u_char *value, size_t value_len, char **err)
Add a breakpoint on the above function to see what happened.
maybe hit the following code
if ((r)->connection->fd == (ngx_socket_t) -1) {
*err = "API disabled in the current context";
return NGX_ERROR;
}
Please help to look at this problem:
version:
luajit : 2.0.5 # https://github.com/openresty/luajit2/archive/refs/tags/v2.0.5.tar.gz lua_nginx_module : v0.10.14 # https://github.com/openresty/lua-nginx-module/archive/refs/tags/v0.10.14.tar.gz nginx-quic : nginx-1.21.1-RELEASE # https://hg.nginx.org/nginx-quic/rev/a68ac0677f85
Htttp3 request an error is as follows:
2022/09/23 16:43:13 [error] 3713#3713: 7398 failed to run log_by_lua: /home/work/app/nginx/lua/report_status/record.lua:9: API disabled in the current context stack traceback: [C]: in function '__index'
record.lua:9 The following :
local host = ngx.var.host