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

[bug]attempt to index global 'sw_tracer ' (a nil value) #2258

Closed
jxplus opened this issue Nov 15, 2023 · 3 comments
Closed

[bug]attempt to index global 'sw_tracer ' (a nil value) #2258

jxplus opened this issue Nov 15, 2023 · 3 comments

Comments

@jxplus
Copy link

jxplus commented Nov 15, 2023

  1. init_by_lua_block, a init alias a require [sw_tracer = require("sw.tracer")]
  2. rewrite_by_lua, use the sw_tracer, then log error of title.

[error] 110733#0: *23 lua entry thread aborted: runtime error: rewrite_by_lua(xxx.com:8):2: attempt to index global 'sw_tracer' (a nil value)

version:
nginx v1.22.0
lua-nginx-module,
when v0.10.15 is ok,
when v0.10.20 is error.
want to no why, and how to fix it.

@lynch1981
Copy link
Contributor

it looks incredible. Can you give a minimal complete configuration to reproduce the issue?

@zhuizhuhaomeng
Copy link
Contributor

did you configure the lua_code_cache off?

@jxplus
Copy link
Author

jxplus commented Nov 21, 2023

I know the reason, thanks

@jxplus jxplus closed this as completed Nov 21, 2023
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