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

有没有办法在body_filter或者log阶段使用kafka? #163

Open
ZxyNull0 opened this issue Apr 8, 2024 · 1 comment
Open

有没有办法在body_filter或者log阶段使用kafka? #163

ZxyNull0 opened this issue Apr 8, 2024 · 1 comment

Comments

@ZxyNull0
Copy link

ZxyNull0 commented Apr 8, 2024

2024/04/08 09:41:12 [error] 2892575#0: *1 failed to run body_filter_by_lua*: /usr/local/openresty/lualib/resty/kafka/broker.lua:125: API disabled in the context of body_filter_by_lua*
stack traceback:
	[C]: in function 'tcp'
	/usr/local/openresty/lualib/resty/kafka/broker.lua:125: in function 'send_receive'
	/usr/local/openresty/lualib/resty/kafka/client.lua:183: in function '_fetch_metadata'
	/usr/local/openresty/lualib/resty/kafka/client.lua:266: in function 'fetch_metadata'
	/usr/local/openresty/lualib/resty/kafka/producer.lua:123: in function 'choose_partition'
	/usr/local/openresty/lualib/resty/kafka/producer.lua:379: in function 'send'
@Jon-Gaara
Copy link
Contributor

可以通过放在定时器里面去调用

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

2 participants