openresty / openresty/lua-nginx-module

nginx-quic error !

Open
#2,101 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
11.8k
Forks
2.1k
Avg merge
6h 1m
Merged PRs (30d)
6

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with /home/work/app/nginx/lua/report_status/record.lua at line 9 and the log_by_lua execution context, using the listed LuaJIT, lua-nginx-module, and nginx-quic versions to reproduce the HTTP/3 request. Done means identifying why ngx.var.host is disabled in that context and recording a confirmed resolution or required compatibility change.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua, nginx
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.