We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
test.lua:
coroutine.wrap(function() print("hello") end)()
Requiring with luajit:
$ luajit -e "require'test'" hello
Requiring in content_by_lua_block:
http { server { listen 8080; lua_code_cache off; location / { content_by_lua_block { require("test") } } } }
$ curl localhost:8080 500 error html page
Error log:
2025/04/06 18:49:55 [error] 2931732#0: *2 lua entry thread aborted: runtime error: attempt to yield across C-call boundary stack traceback: coroutine 0: [C]: in function 'require' content_by_lua(nginx.conf:15):2: in main chunk, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", host: "localhost:8080"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
test.lua:
Requiring with luajit:
Requiring in content_by_lua_block:
Error log:
The text was updated successfully, but these errors were encountered: