-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
bug: coroutine.wrap:20: API disabled in the context of log_by_lua error in Batch Processor #1181
Comments
@membphis I guess APISIX is not allowing to access the JSON schema validator during log phase. Is this due to any performance gain? or shall I use normal validation instead of using the jsonschema? |
In jsonschema, the compiled Lua code is generated by using yield, but the yield operation is not supported in log_phase. I suggest modifying the https://github.com/iresty/jsonschema implementation to avoid using the yield method. |
I have created an issue, if you would like to do this job, please leave a message on this issue. I will assign this issue to you. |
Closing this issue, as it's fixed by #8 |
Hi,
When using the batch processor inside the _M.log phase the system throws the following error.
This happens when I use core.schema.check(schema, config) inside the batch processor.
If I use a simple validation (if/else) then the workflow is working without an error.
Is this a limitation? Some guidance would be helpful.
The text was updated successfully, but these errors were encountered: