Skip to content
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

nginx-quic error ! #2101

Open
tangke777 opened this issue Sep 23, 2022 · 2 comments
Open

nginx-quic error ! #2101

tangke777 opened this issue Sep 23, 2022 · 2 comments

Comments

@tangke777
Copy link

tangke777 commented Sep 23, 2022

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

@zhuizhuhaomeng
Copy link
Contributor

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;
    }

@spacewander
Copy link
Member

Because of #1887?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants