-
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: hook_conf must be present in debug.yaml, otherwise it will throw an exception #7159
Comments
The hook_conf is present by default: Line 22 in 1c33ab2
Are there some user cases people need to remove the default hook_conf? |
per the documentation, hook_conf is only required in advanced debugging. |
But we could be clearer on this point in the documentation? |
Or we can add validation to https://github.com/apache/apisix/blob/master/apisix/debug.lua, with jsonschema like https://github.com/apache/apisix/blob/master/apisix/cli/schema.lua. |
For sure, maybe make it clearer. Thanks! |
Would you like to work for it? |
Sure, if you get access to push. |
PR is welcome! |
Current Behavior
if hook_config is not present, the following exception will be thrown
apisix attempt to index local 'hook_conf' (a nil value)
apisix/apisix/debug.lua
Line 171 in aefffe9
Expected Behavior
not throwing an error if hook_conf is not present.
Error Logs
No response
Steps to Reproduce
Environment
The text was updated successfully, but these errors were encountered: