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

自定义插件不能使用 #52

Open
coolmingwu opened this issue Jul 7, 2022 · 2 comments
Open

自定义插件不能使用 #52

coolmingwu opened this issue Jul 7, 2022 · 2 comments

Comments

@coolmingwu
Copy link

2022/07/07 08:03:56 [warn] 43#43: *23 [lua] init.lua:913: 2022-07-07 08:03:56,810 - ERROR - execute plugin stop TypeError, ("'NoneType' object is not callable",)
, context: ngx.timer
2022/07/07 08:05:16 [warn] 43#43: *23 [lua] init.lua:913: 2022-07-07 08:05:16,691 - ERROR - execute plugin stop TypeError, ("'NoneType' object is not callable",)

@SkyeYoung
Copy link
Member

Can you give me information about the version of APISIX, custom plugins, etc., so that I can help you locate the problem?

@113998274
Copy link

113998274 commented Jan 9, 2023

我也出现这个问题,使用Development Mode启动测试正常,用Production Mode就会报错,测试复制stop.py改名一样如此,并非插件代码问题。但我的apisix-python-plugin-runner是使用了pyenv启动的,我不知道是否这影响了。测试得出是Production Mode启动缺少 export PYTHONPATH=/usr/local/apisix/apisix-python-plugin-runner 变量就会导致错误。我使用一个shell脚本添加上面变量并修改config.yaml,用shell脚本启动解决了。

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