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

API disabled in ngx.timer.at #72

Open
FMLS opened this issue Sep 19, 2019 · 0 comments
Open

API disabled in ngx.timer.at #72

FMLS opened this issue Sep 19, 2019 · 0 comments

Comments

@FMLS
Copy link

FMLS commented Sep 19, 2019

hi, I got a Wicked problem: i must open session in body_filter phase, so i must use <ngx.timer.at api> to wapper <session.start_session>, but i got this error and i check the doc of openresty, maybe ngx.var.VARIABLE can't be used in ngx.timer.at context, what should i do? please help me

[error] 3979#0: *363 lua entry thread aborted: runtime error: [email protected]/1.13.6.2/openresty/lualib/resty/core/var.lua:73: API disabled in the current context
stack traceback:
coroutine 0:
[C]: in function 'error'
[email protected]/1.13.6.2/openresty/lualib/resty/core/var.lua:73: in function '__index'
./src/libs/third/resty/session.lua:174: in function 'init'
./src/libs/third/resty/session.lua:215: in function 'new'
./src/libs/third/resty/session.lua:275: in function 'open'
./src/libs/third/resty/session.lua:303: in function 'start_session'

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

1 participant