Hello!
On Mon, Nov 6, 2017 at 1:26 AM, Yongxin Zhang wrote:
> Thanks for the reply. Although this did not solve my issue, but gives me
> another glance and found out the problem reside in another issue.
>
> init_worker_by_lua_file error: .../.lua: API disabled in the current context
> stack traceback:
>
Too bad you omitted the backtrace. You could clearly see from the
stack traceback exactly which Lua API function is being used
incorrectly in the init_worker_by_lua*. It must not be ngx.timer.at()
since it is supported in that context (unless you are using an ancient
version of OpenResty).
Regards,
Yichun