-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
bug: script does not work #3663
Comments
PR is welcome! |
assign to me |
According to the script documentation, on the route, script and plugin are mutually exclusive, so if there is script on the route and plugins on the service, and the route is bound to the service, do you need to execute both script and plugins? |
The route one is preferred. |
There is such a case: route has a script, service has a plugin, route is bound to service, then the service's plugin needs to be executed? |
for your case, only |
got |
Issue description
I used the script, but the script did not execute, see the following test case
based on the documentation for the script, I think the script should be executed because it is bound to the route and neither the route nor the service has plugins configured
bugs may appear in
apisix/apisix/plugin.lua
Line 385 in 16f017d
maybe this function should be preceded by code like this before return
Environment
apisix version
): greater than 2.2, less than 2.3uname -a
): Centos 7nginx -V
oropenresty -V
): openresty/1.19.3.1curl http://127.0.0.1:9090/v1/server_info
to get the info from server-info API): {"etcdserver":"3.4.13","etcdcluster":"3.4.0"}Minimal test code / Steps to reproduce the issue
What's the actual result? (including assertion message & call stack if applicable)
What's the expected result?
The text was updated successfully, but these errors were encountered: