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
health check has an error message #2368
Comments
Hi @840963657, thanks for your report. After examination, there is indeed this problem. Would you like to help fix this problem? The reasonThe request headers in the health check are empty by default, and in this case, there is no Possible solutionsThe UI form ensures that requests sent to the API always do not contain the |
I‘m sorry,I'm not familiar with JS...’ |
@Si-ege Do you have time to help solve this problem? |
I can try to complete the question |
Issue description
1、add new route;
2、enable health check and add a header parameter;
3、modify route and remove the header parameter;
4、when i submit , there is an error message displayed in the browser
Expected behavior
add route success
How to Reproduce
1、add new route;
2、enable health check;
3、add a header parameter ;
4、submit;
5、modify this route;
6、remove the header parameter;
7、submit;
Screenshots
Environment
apisix version
):2.11.0uname -a
):linuxnginx -V
oropenresty -V
):openresty/1.19.9.1etcd --version
):etcd Version: 3.4.13Additional context
I checked the apisix code. req_headers is an array, if req_headers not nil ,then there is at least one value in req_headers.
So I think apisix-dashboard pass apisix an empty array,like this: req_headers[]。
Then apisix validate failed,error message is: Array must have at least 1 items
The text was updated successfully, but these errors were encountered: